Simple Question (Direct)
Simple Question
Q6247217
P108
Q12973014
USER
Which sports teams employ John Mauer ?
(Q6247217,P108,c(Q12973014))
action filter_type
action find
entity Q6247217
relation P108
type Q12973014
['Q6247217', 'P108', {'concept': 'Q12973014'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12973014 . resource:Q6247217 property:P108 ?r }
John Mauer
action filter_type
action find
entity John Mauer
relation employer
type sports team
['John Mauer', 'employer', {'concept': 'sports team'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sports_team . resource:John_Mauer property:employer ?r }
[]
sports team
Q6392428 Q6827387 Q5461408
SYSTEM
Kentucky Wildcats men's basketball, Miami RedHawks men's basketball, Florida Gators men's basketball
Q6392428 Q6827387 Q5461408
(Q6247217,P108,c(Q12973014))
action filter_type
action find
entity Q6247217
relation P108
type Q12973014
[ANSWERS] employ John Mauer
['Q6247217', 'P108', {'concept': 'Q12973014'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q12973014 . resource:Q6247217 property:P108 ?r }
Kentucky Wildcats men's basketball Miami RedHawks men's basketball Florida Gators men's basketball
Kentucky Wildcats men's basketball, Miami RedHawks men's basketball and Florida Gators men's basketball employ John Mauer
Kentucky Wildcats men's basketball Miami RedHawks men's basketball Florida Gators men's basketball
action filter_type
action find
entity John Mauer
relation employer
type sports team
['John Mauer', 'employer', {'concept': 'sports team'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sports_team . resource:John_Mauer property:employer ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6247217
P69
Q3918
USER
Which university is the alma mater of John Mauer ?
(Q6247217,P69,c(Q3918))
action filter_type
action find
entity Q6247217
relation P69
type Q3918
['Q6247217', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?q WHERE { resource:Q6247217 property:P69 ?q . ?q rdf:type ontology:Q3918 }
John Mauer
action filter_type
action find
entity John Mauer
relation educated at
type university
['John Mauer', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?q WHERE { resource:John_Mauer property:educated_at ?q . ?q rdf:type ontology:university }
[]
university
Q457281
SYSTEM
University of Illinois at Urbana–Champaign
Q457281
(Q6247217,P69,c(Q3918))
action filter_type
action find
entity Q6247217
relation P69
type Q3918
[ANSWER] is the alma mater of John Mauer
['Q6247217', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?q WHERE { resource:Q6247217 property:P69 ?q . ?q rdf:type ontology:Q3918 }
University of Illinois at Urbana–Champaign
University of Illinois at Urbana–Champaign is the alma mater of John Mauer
University of Illinois at Urbana–Champaign
action filter_type
action find
entity John Mauer
relation educated at
type university
['John Mauer', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?q WHERE { resource:John_Mauer property:educated_at ?q . ?q rdf:type ontology:university }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q239571
Q3918
USER
And how about Elizabeth Dole?
(Q239571,P69,c(Q3918))
action filter_type
action find
entity Q239571
relation P69
type Q3918
['Q239571', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?m WHERE { resource:Q239571 property:P69 ?m . ?m rdf:type ontology:Q3918 }
Elizabeth Dole
action filter_type
action find
entity Elizabeth Dole
relation educated at
type university
['Elizabeth Dole', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?m WHERE { resource:Elizabeth_Dole property:educated_at ?m . ?m rdf:type ontology:university }
[]
university
Q34433
SYSTEM
University of Oxford
Q34433
(Q239571,P69,c(Q3918))
action filter_type
action find
entity Q239571
relation P69
type Q3918
[ANSWER]
['Q239571', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?m WHERE { resource:Q239571 property:P69 ?m . ?m rdf:type ontology:Q3918 }
University of Oxford
University of Oxford
action filter_type
action find
entity Elizabeth Dole
relation educated at
type university
['Elizabeth Dole', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?m WHERE { resource:Elizabeth_Dole property:educated_at ?m . ?m rdf:type ontology:university }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6247217 Q5137303
P27
Q15617994
USER
How many administrative territories are John Mauer or Clóvis Bornay a civilian of ?
(Q6247217,P27,c(Q15617994)) (Q5137303,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q6247217
relation P27
type Q15617994
action filter_type
action find
entity Q5137303
relation P27
type Q15617994
['Q6247217', 'P27', {'concept': 'Q15617994'}] ['Q5137303', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { resource:Q6247217 property:P27 ?m . ?m rdf:type ontology:Q15617994 } UNION { resource:Q5137303 property:P27 ?m . ?m rdf:type ontology:Q15617994 } }
John Mauer Clóvis Bornay
action count
action union
action filter_type
action find
entity John Mauer
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Clóvis Bornay
relation country of citizenship
type designation for an administrative territorial entity
['John Mauer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Clóvis Bornay', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { resource:John_Mauer property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Clóvis_Bornay property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q155 Q30
(Q6247217,P27,c(Q15617994)) (Q5137303,P27,c(Q15617994))
action count
action union
action filter_type
action find
entity Q6247217
relation P27
type Q15617994
action filter_type
action find
entity Q5137303
relation P27
type Q15617994
[ANSWER]
['Q6247217', 'P27', {'concept': 'Q15617994'}] ['Q5137303', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { resource:Q6247217 property:P27 ?m . ?m rdf:type ontology:Q15617994 } UNION { resource:Q5137303 property:P27 ?m . ?m rdf:type ontology:Q15617994 } }
Brazil United States of America
2
action count
action union
action filter_type
action find
entity John Mauer
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Clóvis Bornay
relation country of citizenship
type designation for an administrative territorial entity
['John Mauer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Clóvis Bornay', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { { resource:John_Mauer property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Clóvis_Bornay property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q128730 Q6247217
P19 P915
Q56061
USER
Which administrative territories were John Mauer born or were Thirteen Days filmed at ?
OR((Q6247217,P19,c(Q56061)), (Q128730,P915,c(Q56061)))
action filter_type
action union
action find
entity Q6247217
relation P19
action find
entity Q128730
relation P915
type Q56061
{'OR': [['Q6247217', 'P19', {'concept': 'Q56061'}], ['Q128730', 'P915', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q6247217 property:P19 ?f } UNION { resource:Q128730 property:P915 ?f } } . ?f rdf:type ontology:Q56061 }
Thirteen Days John Mauer
action filter_type
action union
action find
entity John Mauer
relation place of birth
action find
entity Thirteen Days
relation filming location
type administrative territorial entity
{'OR': [['John Mauer', 'place of birth', {'concept': 'administrative territorial entity'}], ['Thirteen Days', 'filming location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:John_Mauer property:place_of_birth ?f } UNION { resource:Thirteen_Days property:filming_location ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q485716 Q54264 Q22595 Q65 Q752681 Q61
SYSTEM
Glendale, Newport, Aurora, Los Angeles, Alhambra, Washington, D.C.
Q485716 Q54264 Q22595 Q65 Q752681 Q61
OR((Q6247217,P19,c(Q56061)), (Q128730,P915,c(Q56061)))
action filter_type
action union
action find
entity Q6247217
relation P19
action find
entity Q128730
relation P915
type Q56061
[ANSWERS]
{'OR': [['Q6247217', 'P19', {'concept': 'Q56061'}], ['Q128730', 'P915', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q6247217 property:P19 ?f } UNION { resource:Q128730 property:P915 ?f } } . ?f rdf:type ontology:Q56061 }
Glendale Newport Aurora Los Angeles Alhambra Washington, D.C.
Or were Thirteen Days in Glendale, Newport, Aurora, Los Angeles, Alhambra and Washington, D.C. John Mauer were born filmed at
Glendale Newport Aurora Los Angeles Alhambra Washington, D.C.
action filter_type
action union
action find
entity John Mauer
relation place of birth
action find
entity Thirteen Days
relation filming location
type administrative territorial entity
{'OR': [['John Mauer', 'place of birth', {'concept': 'administrative territorial entity'}], ['Thirteen Days', 'filming location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:John_Mauer property:place_of_birth ?f } UNION { resource:Thirteen_Days property:filming_location ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q56061
USER
How many administrative territories share the border with that administrative territory ?
(Q485716,P47,c(Q56061))
['Q485716', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q23760661 property:P47 ?z . ?z rdf:type ontology:Q56061 }
['Glendale', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Glendale property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q54264
SYSTEM
Did you mean Newport ?
(Q485716,P47,c(Q56061)) (Q54264,P47,c(Q56061)) (Q22595,P47,c(Q56061)) (Q65,P47,c(Q56061)) (Q752681,P47,c(Q56061)) (Q61,P47,c(Q56061))
[ANSWER]
['Q485716', 'P47', {'concept': 'Q56061'}] ['Q54264', 'P47', {'concept': 'Q56061'}] ['Q22595', 'P47', {'concept': 'Q56061'}] ['Q65', 'P47', {'concept': 'Q56061'}] ['Q752681', 'P47', {'concept': 'Q56061'}] ['Q61', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q23760661 property:P47 ?z . ?z rdf:type ontology:Q56061 }
Did you mean Newport ?
Newport
['Glendale', 'shares border with', {'concept': 'administrative territorial entity'}] ['Newport', 'shares border with', {'concept': 'administrative territorial entity'}] ['Aurora', 'shares border with', {'concept': 'administrative territorial entity'}] ['Los Angeles', 'shares border with', {'concept': 'administrative territorial entity'}] ['Alhambra', 'shares border with', {'concept': 'administrative territorial entity'}] ['Washington, D.C.', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Glendale property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Glendale. Could you tell me the answer for that?
(Q485716,P47,c(Q56061))
Q485716
['Q485716', 'P47', {'concept': 'Q56061'}]
['Glendale', 'shares border with', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
4
Q1011181 Q1798748 Q39561 Q65
(Q485716,P47,c(Q56061))
[ANSWER]
['Q485716', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q23760661 property:P47 ?z . ?z rdf:type ontology:Q56061 }
La Cañada Flintridge La Crescenta-Montrose Burbank Los Angeles
4
['Glendale', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Glendale property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q61
P190
Q515 Q56061
USER
How many cities and administrative territories are a sister city of Washington, D.C. ?
(c(Q515),P190,Q61) (c(Q56061),P190,Q61)
action count
action union
action filter_type
action find_reverse
entity Q61
relation P190
type Q515
action filter_type
action find_reverse
entity Q61
relation P190
type Q56061
[{'concept': 'Q515'}, 'P190', 'Q61'] [{'concept': 'Q56061'}, 'P190', 'Q61']
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { ?v property:P190 resource:Q61 . ?v rdf:type ontology:Q56061 } UNION { ?v property:P190 resource:Q61 . ?v rdf:type ontology:Q515 } }
Washington, D.C.
action count
action union
action filter_type
action find_reverse
entity Washington, D.C.
relation sister city
type city
action filter_type
action find_reverse
entity Washington, D.C.
relation sister city
type administrative territorial entity
[{'concept': 'city'}, 'sister city', 'Washington, D.C.'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Washington, D.C.']
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { ?v property:sister_city resource:Washington,_D.C. . ?v rdf:type ontology:administrative_territorial_entity } UNION { ?v property:sister_city resource:Washington,_D.C. . ?v rdf:type ontology:city } }
[]
city administrative territorial entity
SYSTEM
5 cities and 11 administrative territories
Q3624 Q956 Q8684 Q987 Q239 Q3761 Q1524 Q3718 Q9005 Q1861 Q3640 Q3926 Q1491 Q585 Q188304 Q2844
(c(Q515),P190,Q61) (c(Q56061),P190,Q61)
action count
action union
action filter_type
action find_reverse
entity Q61
relation P190
type Q515
action filter_type
action find_reverse
entity Q61
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q61'] [{'concept': 'Q56061'}, 'P190', 'Q61']
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { ?v property:P190 resource:Q61 . ?v rdf:type ontology:Q56061 } UNION { ?v property:P190 resource:Q61 . ?v rdf:type ontology:Q515 } }
Addis Ababa Beijing Seoul New Delhi Brussels Accra Athens Dakar Brussels Bangkok Ankara Pretoria La Paz Oslo Sunderland Brasília
5 cities and 11 administrative territories
action count
action union
action filter_type
action find_reverse
entity Washington, D.C.
relation sister city
type city
action filter_type
action find_reverse
entity Washington, D.C.
relation sister city
type administrative territorial entity
[{'concept': 'city'}, 'sister city', 'Washington, D.C.'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Washington, D.C.']
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { ?v property:sister_city resource:Washington,_D.C. . ?v rdf:type ontology:administrative_territorial_entity } UNION { ?v property:sister_city resource:Washington,_D.C. . ?v rdf:type ontology:city } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q61
P30
Q2221906
USER
Which geographic location is that administrative territory situated in ?
action filter_type
action find
entity Q61
relation P30
type Q2221906
SELECT DISTINCT ?a WHERE { resource:Q61 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Washington, D.C.
action filter_type
action find
entity Washington, D.C.
relation continent
type geographic location
SELECT DISTINCT ?a WHERE { resource:Washington,_D.C. property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
geographic location
Q828
SYSTEM
Americas
Q828
action filter_type
action find
entity Q61
relation P30
type Q2221906
That administrative territory is situated in [ANSWER]
SELECT DISTINCT ?a WHERE { resource:Q61 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Americas
That administrative territory is situated in Americas
Americas
action filter_type
action find
entity Washington, D.C.
relation continent
type geographic location
SELECT DISTINCT ?a WHERE { resource:Washington,_D.C. property:continent ?a . ?a rdf:type ontology:geographic_location }
[]