Simple Question (Direct)
Simple Question
Q18153557
P22
Q502895
USER
Who was the father of Tyler Ritter ?
(Q18153557,P22,c(Q502895))
action filter_type
action find
entity Q18153557
relation P22
type Q502895
['Q18153557', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q18153557 property:P22 ?t . ?t rdf:type ontology:Q502895 }
Tyler Ritter
action filter_type
action find
entity Tyler Ritter
relation father
type common name
['Tyler Ritter', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Tyler_Ritter property:father ?t . ?t rdf:type ontology:common_name }
[]
common name
Q314812
SYSTEM
John Ritter
Q314812
(Q18153557,P22,c(Q502895))
action filter_type
action find
entity Q18153557
relation P22
type Q502895
The father of Tyler Ritter was named [ANSWER]
['Q18153557', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q18153557 property:P22 ?t . ?t rdf:type ontology:Q502895 }
John Ritter
The father of Tyler Ritter was named John Ritter
John Ritter
action filter_type
action find
entity Tyler Ritter
relation father
type common name
['Tyler Ritter', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Tyler_Ritter property:father ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q314812
P26
Q502895
USER
Which people are married to that one ?
(c(Q502895),P26,Q314812)
action filter_type
action find
entity Q314812
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q314812']
SELECT DISTINCT ?r WHERE { resource:Q314812 property:P26 ?r . ?r rdf:type ontology:Q502895 }
John Ritter
action filter_type
action find
entity John Ritter
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'John Ritter']
SELECT DISTINCT ?r WHERE { resource:John_Ritter property:spouse ?r . ?r rdf:type ontology:common_name }
[]
common name
Q259703 Q3335593
SYSTEM
Amy Yasbeck, Nancy Morgan
Q259703 Q3335593
(c(Q502895),P26,Q314812)
action filter_type
action find
entity Q314812
relation P26
type Q502895
[ANSWERS] are married to that one
[{'concept': 'Q502895'}, 'P26', 'Q314812']
SELECT DISTINCT ?r WHERE { resource:Q314812 property:P26 ?r . ?r rdf:type ontology:Q502895 }
Amy Yasbeck Nancy Morgan
Amy Yasbeck and Nancy Morgan are married to that one
Amy Yasbeck Nancy Morgan
action filter_type
action find
entity John Ritter
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'John Ritter']
SELECT DISTINCT ?r WHERE { resource:John_Ritter property:spouse ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q259703 Q3335593
P161
Q15416
USER
Which television programs stars Amy Yasbeck and Nancy Morgan as actor ?
(c(Q15416),P161,Q259703) (c(Q15416),P161,Q3335593)
action union
action filter_type
action find_reverse
entity Q259703
relation P161
type Q15416
action filter_type
action find_reverse
entity Q3335593
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q259703'] [{'concept': 'Q15416'}, 'P161', 'Q3335593']
SELECT DISTINCT ?l WHERE { { ?l property:P161 resource:Q259703 . ?l rdf:type ontology:Q15416 } UNION { ?l property:P161 resource:Q3335593 . ?l rdf:type ontology:Q15416 } }
Amy Yasbeck Nancy Morgan
action union
action filter_type
action find_reverse
entity Amy Yasbeck
relation cast member
type television program
action filter_type
action find_reverse
entity Nancy Morgan
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Amy Yasbeck'] [{'concept': 'television program'}, 'cast member', 'Nancy Morgan']
SELECT DISTINCT ?l WHERE { { ?l property:cast_member resource:Amy_Yasbeck . ?l rdf:type ontology:television_program } UNION { ?l property:cast_member resource:Nancy_Morgan . ?l rdf:type ontology:television_program } }
[]
television program
Q331787 Q1165306 Q3469672
SYSTEM
Wings, Lucky Luke, Dead Husbands
Q331787 Q82094 Q3469672 Q3458502 Q1165306
(c(Q15416),P161,Q259703) (c(Q15416),P161,Q3335593)
action union
action filter_type
action find_reverse
entity Q259703
relation P161
type Q15416
action filter_type
action find_reverse
entity Q3335593
relation P161
type Q15416
[ANSWERS] star Amy Yasbeck and Nancy Morgan as actor
[{'concept': 'Q15416'}, 'P161', 'Q259703'] [{'concept': 'Q15416'}, 'P161', 'Q3335593']
SELECT DISTINCT ?l WHERE { { ?l property:P161 resource:Q259703 . ?l rdf:type ontology:Q15416 } UNION { ?l property:P161 resource:Q3335593 . ?l rdf:type ontology:Q15416 } }
Wings Splash Dead Husbands Sweet Dreams Lucky Luke
Wings, Lucky Luke and Dead Husbands star Amy Yasbeck and Nancy Morgan as actor
Wings Lucky Luke Dead Husbands
action union
action filter_type
action find_reverse
entity Amy Yasbeck
relation cast member
type television program
action filter_type
action find_reverse
entity Nancy Morgan
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Amy Yasbeck'] [{'concept': 'television program'}, 'cast member', 'Nancy Morgan']
SELECT DISTINCT ?l WHERE { { ?l property:cast_member resource:Amy_Yasbeck . ?l rdf:type ontology:television_program } UNION { ?l property:cast_member resource:Nancy_Morgan . ?l rdf:type ontology:television_program } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18153557
P9
Q502895
USER
Who is the sibling of Tyler Ritter ?
(Q18153557,P9,c(Q502895))
action filter_type
action find
entity Q18153557
relation P9
type Q502895
['Q18153557', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q18153557 property:P9 ?a . ?a rdf:type ontology:Q502895 }
Tyler Ritter
action filter_type
action find
entity Tyler Ritter
relation sister
type common name
['Tyler Ritter', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Tyler_Ritter property:sister ?a . ?a rdf:type ontology:common_name }
[]
common name
Q21006321
SYSTEM
Stella Ritter
Q21006321
(Q18153557,P9,c(Q502895))
action filter_type
action find
entity Q18153557
relation P9
type Q502895
The sibling of Tyler Ritter is named [ANSWER]
['Q18153557', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q18153557 property:P9 ?a . ?a rdf:type ontology:Q502895 }
Stella Ritter
The sibling of Tyler Ritter is named Stella Ritter
Stella Ritter
action filter_type
action find
entity Tyler Ritter
relation sister
type common name
['Tyler Ritter', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Tyler_Ritter property:sister ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q331787
P86
Q502895
USER
Who did the compostion for Wings ?
(Q331787,P86,c(Q502895))
action filter_type
action find
entity Q331787
relation P86
type Q502895
['Q331787', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q331787 property:P86 ?p . ?p rdf:type ontology:Q502895 }
Wings
action filter_type
action find
entity Wings
relation composer
type common name
['Wings', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Wings property:composer ?p . ?p rdf:type ontology:common_name }
[]
common name
Q3645488
SYSTEM
Bruce Miller
Q3645488
(Q331787,P86,c(Q502895))
action filter_type
action find
entity Q331787
relation P86
type Q502895
[ANSWER] did the compostion for Wings
['Q331787', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q331787 property:P86 ?p . ?p rdf:type ontology:Q502895 }
Bruce Miller
Bruce Miller did the compostion for Wings
Bruce Miller
action filter_type
action find
entity Wings
relation composer
type common name
['Wings', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Wings property:composer ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q331787
P170
Q502895
USER
Which person is credited with creation of that television program ?
(Q3645488,P170,c(Q502895))
action filter_type
action find
entity Q331787
relation P170
type Q502895
['Q3645488', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q331787 property:P170 ?o . ?o rdf:type ontology:Q502895 }
Wings
action filter_type
action find
entity Wings
relation creator
type common name
['Bruce Miller', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Wings property:creator ?o . ?o rdf:type ontology:common_name }
[]
common name
Q2295429
SYSTEM
David Angell
Q2295429
(Q3645488,P170,c(Q502895))
action filter_type
action find
entity Q331787
relation P170
type Q502895
[ANSWER] is credited with creation of that television program
['Q3645488', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q331787 property:P170 ?o . ?o rdf:type ontology:Q502895 }
David Angell
David Angell is credited with creation of that television program
David Angell
action filter_type
action find
entity Wings
relation creator
type common name
['Bruce Miller', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Wings property:creator ?o . ?o rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13862558 Q331787
P161
Q502895
USER
Which people are in Wings or Mother Love ?
OR((Q331787,P161,c(Q502895)), (Q13862558,P161,c(Q502895)))
action filter_type
action union
action find
entity Q331787
relation P161
action find
entity Q13862558
relation P161
type Q502895
{'OR': [['Q331787', 'P161', {'concept': 'Q502895'}], ['Q13862558', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?t ) { ( resource:Q331787 ) ( resource:Q13862558 ) } . ?t property:P161 ?e } . ?e rdf:type ontology:Q502895 }
Mother Love Wings
action filter_type
action union
action find
entity Wings
relation cast member
action find
entity Mother Love
relation cast member
type common name
{'OR': [['Wings', 'cast member', {'concept': 'common name'}], ['Mother Love', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?t ) { ( resource:Wings ) ( resource:Mother_Love ) } . ?t property:cast_member ?e } . ?e rdf:type ontology:common_name }
[]
common name
Q861494 Q2443357 Q6386219 Q953841 Q22680667 Q22670021 Q311615 Q229034 Q421707 Q351479
SYSTEM
Some of them are Matt Malloy, John Fiore, Kelly Neal, Richard Brooks, Carl Jay Cofield, William Charlton, Thomas Haden Church, Edie Falco, Jerry Orbach, Tim Daly
Q2083361 Q22670021 Q6386219 Q22639259 Q938416 Q3421728 Q336185 Q22680669 Q22680667 Q22680665 Q22680663 Q22680661 Q271051 Q1394940 Q5302045 Q5294190 Q259703 Q22680673 Q724796 Q21517126 Q22639264 Q107249 Q5478651 Q953841 Q311615 Q22680657 Q22680654 Q22680659 Q22680676 Q351479 Q22680670 Q179960 Q743512 Q2443357 Q5437831 Q531869 Q250425 Q22575686 Q861494 Q3018765 Q421707 Q229034 Q2799612
OR((Q331787,P161,c(Q502895)), (Q13862558,P161,c(Q502895)))
action filter_type
action union
action find
entity Q331787
relation P161
action find
entity Q13862558
relation P161
type Q502895
[ANSWERS] are in Wings or Mother Love
{'OR': [['Q331787', 'P161', {'concept': 'Q502895'}], ['Q13862558', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?t ) { ( resource:Q331787 ) ( resource:Q13862558 ) } . ?t property:P161 ?e } . ?e rdf:type ontology:Q502895 }
David Lipman William Charlton Kelly Neal Anthony Ruiz Dann Florek Rebecca Schull Chris Noth Burt Edwards Carl Jay Cofield Peggy Gormley John Quinn Leland Gantt Mary Alice Paul Schulze Douglas Turner Ward Donald Corren Amy Yasbeck Joe Gonzalez Steven Weber Brenda Denmark Rafael Báez Tony Shalhoub Frances Foster Richard Brooks Thomas Haden Church Nancy Ticotin Phyllis Yvonne Stickney Ebony Jo-Ann Michael Guess Tim Daly J.J. Clark Steven Hill Farrah Forke John Fiore Fatima Faloye Michael Moriarty Crystal Bernard Dan Moran Matt Malloy David Schramm Jerry Orbach Edie Falco Carolyn McCormick
Matt Malloy, John Fiore, Kelly Neal, Richard Brooks, Carl Jay Cofield, William Charlton, Thomas Haden Church, Edie Falco, Jerry Orbach and Tim Daly are in Wings or Mother Love
Matt Malloy John Fiore Kelly Neal Richard Brooks Carl Jay Cofield William Charlton Thomas Haden Church Edie Falco Jerry Orbach Tim Daly
action filter_type
action union
action find
entity Wings
relation cast member
action find
entity Mother Love
relation cast member
type common name
{'OR': [['Wings', 'cast member', {'concept': 'common name'}], ['Mother Love', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?t ) { ( resource:Wings ) ( resource:Mother_Love ) } . ?t property:cast_member ?e } . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q331787
P161
Q502895
USER
How many people were casted in Wings ?
(Q331787,P161,c(Q502895))
action count
action filter_type
action find
entity Q331787
relation P161
type Q502895
['Q331787', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a rdf:type ontology:Q502895 . resource:Q331787 property:P161 ?a }
Wings
action count
action filter_type
action find
entity Wings
relation cast member
type common name
['Wings', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a rdf:type ontology:common_name . resource:Wings property:cast_member ?a }
[]
common name
SYSTEM
9
Q743512 Q311615 Q107249 Q250425 Q3421728 Q3018765 Q259703 Q351479 Q724796
(Q331787,P161,c(Q502895))
action count
action filter_type
action find
entity Q331787
relation P161
type Q502895
[ANSWER]
['Q331787', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a rdf:type ontology:Q502895 . resource:Q331787 property:P161 ?a }
Farrah Forke Thomas Haden Church Tony Shalhoub Crystal Bernard Rebecca Schull David Schramm Amy Yasbeck Tim Daly Steven Weber
9
action count
action filter_type
action find
entity Wings
relation cast member
type common name
['Wings', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { ?a rdf:type ontology:common_name . resource:Wings property:cast_member ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q331787
P364
Q34770
USER
Which language was used originally for the creation of that television program ?
action filter_type
action find
entity Q331787
relation P364
type Q34770
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34770 . resource:Q331787 property:P364 ?x }
Wings
action filter_type
action find
entity Wings
relation original language of work
type language
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:language . resource:Wings property:original_language_of_work ?x }
[]
language
Q1860
SYSTEM
English
Q1860
action filter_type
action find
entity Q331787
relation P364
type Q34770
[ANSWER] was used originally for the creation of that television program
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34770 . resource:Q331787 property:P364 ?x }
English
English was used originally for the creation of that television program
English
action filter_type
action find
entity Wings
relation original language of work
type language
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:language . resource:Wings property:original_language_of_work ?x }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P2439
Q34770 Q49848 Q1969448
USER
Which languages are associated with around the same number of documents and terms as that language ?
(c(Q49848)|c(Q1969448),P2439,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q49848
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q1969448
action count
action filter_multi_types
action find_reverse
entity Q1860
relation P2439
type Q49848
type Q1969448
[[{'concept': 'Q49848'}, {'concept': 'Q1969448'}], 'P2439', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P2439 resource:Q1860 . { { ?u rdf:type ontology:Q49848 } UNION { ?u rdf:type ontology:Q1969448 } } } } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?v WHERE { { ?i property:P2439 ?v . ?v rdf:type ontology:Q34770 . ?i rdf:type ontology:Q49848 } UNION { ?i property:P2439 ?v . ?v rdf:type ontology:Q34770 . ?i rdf:type ontology:Q1969448 } } GROUP BY ?v } }
action approx
action union
action find_reverse_tuple_counts
relation language
type language
type document
action find_reverse_tuple_counts
relation language
type language
type term
action count
action filter_multi_types
action find_reverse
entity English
relation language
type document
type term
[[{'concept': 'document'}, {'concept': 'term'}], 'language', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:language resource:English . { { ?u rdf:type ontology:document } UNION { ?u rdf:type ontology:term } } } } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?v WHERE { { ?i property:language ?v . ?v rdf:type ontology:language . ?i rdf:type ontology:document } UNION { ?i property:language ?v . ?v rdf:type ontology:language . ?i rdf:type ontology:term } } GROUP BY ?v } }
[]
language document term
Q1860
SYSTEM
English
Q1860
(c(Q49848)|c(Q1969448),P2439,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q49848
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q1969448
action count
action filter_multi_types
action find_reverse
entity Q1860
relation P2439
type Q49848
type Q1969448
[ANSWER] is associated with around the same number of documents and terms as that language
[[{'concept': 'Q49848'}, {'concept': 'Q1969448'}], 'P2439', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P2439 resource:Q1860 . { { ?u rdf:type ontology:Q49848 } UNION { ?u rdf:type ontology:Q1969448 } } } } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?v WHERE { { ?i property:P2439 ?v . ?v rdf:type ontology:Q34770 . ?i rdf:type ontology:Q49848 } UNION { ?i property:P2439 ?v . ?v rdf:type ontology:Q34770 . ?i rdf:type ontology:Q1969448 } } GROUP BY ?v } }
English
English is associated with around the same number of documents and terms as that language
English
action approx
action union
action find_reverse_tuple_counts
relation language
type language
type document
action find_reverse_tuple_counts
relation language
type language
type term
action count
action filter_multi_types
action find_reverse
entity English
relation language
type document
type term
[[{'concept': 'document'}, {'concept': 'term'}], 'language', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:language resource:English . { { ?u rdf:type ontology:document } UNION { ?u rdf:type ontology:term } } } } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?v WHERE { { ?i property:language ?v . ?v rdf:type ontology:language . ?i rdf:type ontology:document } UNION { ?i property:language ?v . ?v rdf:type ontology:language . ?i rdf:type ontology:term } } GROUP BY ?v } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P37
Q34770 Q56061
USER
How many administrative territories are known to have atleast 4 languages as their official language ?
(c(Q56061),P37,c(Q34770))
action count
action atleast
action find_tuple_counts
relation P37
type Q56061
type Q34770
value 4
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?b ) WHERE { ?r rdf:type ontology:Q56061 . ?g rdf:type ontology:Q34770 . ?r property:P37 ?g } GROUP BY ?r } . FILTER ( ?b >= 4 ) }
action count
action atleast
action find_tuple_counts
relation official language
type administrative territorial entity
type language
value 4
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?b ) WHERE { ?r rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:language . ?r property:official_language ?g } GROUP BY ?r } . FILTER ( ?b >= 4 ) }
[]
language administrative territorial entity
SYSTEM
1
Q458
(c(Q56061),P37,c(Q34770))
action count
action atleast
action find_tuple_counts
relation P37
type Q56061
type Q34770
value 4
[ANSWER]
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?b ) WHERE { ?r rdf:type ontology:Q56061 . ?g rdf:type ontology:Q34770 . ?r property:P37 ?g } GROUP BY ?r } . FILTER ( ?b >= 4 ) }
European Union
1
action count
action atleast
action find_tuple_counts
relation official language
type administrative territorial entity
type language
value 4
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?g ) AS ?b ) WHERE { ?r rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:language . ?r property:official_language ?g } GROUP BY ?r } . FILTER ( ?b >= 4 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P37
Q34770 Q1048835
USER
How many political territories are atleast 1 language associated to as the official language ?
(c(Q1048835),P37,c(Q34770))
action count
action atleast
action find_tuple_counts
relation P37
type Q1048835
type Q34770
value 1
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?k ) WHERE { ?p property:P37 ?e . ?p rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q34770 } GROUP BY ?p } . FILTER ( ?k >= 1 ) }
action count
action atleast
action find_tuple_counts
relation official language
type political territorial entity
type language
value 1
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?k ) WHERE { ?p property:official_language ?e . ?p rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:language } GROUP BY ?p } . FILTER ( ?k >= 1 ) }
[]
language political territorial entity
SYSTEM
41
Q127167 Q193714 Q691 Q686790 Q785 Q769 Q763 Q917883 Q35086 Q766 Q9676 Q1054923 Q52626 Q5720 Q664 Q13353 Q37362 Q1771153 Q5705 Q13786 Q16 Q5785 Q624511 Q15601 Q1628531 Q649612 Q757 Q685 Q778 Q25228 Q4474 Q408 Q1631311 Q1444150 Q9648 Q643919 Q1644430 Q23635 Q781 Q1907203 Q1769772
(c(Q1048835),P37,c(Q34770))
action count
action atleast
action find_tuple_counts
relation P37
type Q1048835
type Q34770
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?k ) WHERE { ?p property:P37 ?e . ?p rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q34770 } GROUP BY ?p } . FILTER ( ?k >= 1 ) }
Western Cape Mandatory Palestine Papua New Guinea Mediona Jersey Grenada Saint Kitts and Nevis Molina de Segura South Georgia and the South Sandwich Islands Jamaica Isle of Man British Hong Kong Formentera Valencian Country New Zealand Montserrat Akrotiri and Dhekelia Albuixech Catalonia Cebu Canada Cayman Islands Aracena Corbera de Llobregat Quintanar de la Orden Coca, Segovia Saint Vincent and the Grenadines Solomon Islands The Bahamas Anguilla Ortuella Australia Cuéllar Alboloduy Falkland Islands Torfaen County Borough Monreal del Campo Bermuda Antigua and Barbuda San Miguel del Arroyo Bierge
41
action count
action atleast
action find_tuple_counts
relation official language
type political territorial entity
type language
value 1
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?k ) WHERE { ?p property:official_language ?e . ?p rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:language } GROUP BY ?p } . FILTER ( ?k >= 1 ) }
[]