Simple Question (Direct)
Simple Question
Q5115670
P102
Q7210356
USER
Which party does Chuck Quackenbush belong to ?
(Q5115670,P102,c(Q7210356))
action filter_type
action find
entity Q5115670
relation P102
type Q7210356
['Q5115670', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q5115670 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Chuck Quackenbush
action filter_type
action find
entity Chuck Quackenbush
relation member of political party
type political organization
['Chuck Quackenbush', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Chuck_Quackenbush property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q5115670,P102,c(Q7210356))
action filter_type
action find
entity Q5115670
relation P102
type Q7210356
Chuck Quackenbush belongs to [ANSWER]
['Q5115670', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q5115670 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Republican Party
Chuck Quackenbush belongs to Republican Party
Republican Party
action filter_type
action find
entity Chuck Quackenbush
relation member of political party
type political organization
['Chuck Quackenbush', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Chuck_Quackenbush property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5115670
P937
Q5119
USER
What is the work location of that person ?
(Q29468,P937,c(Q5119))
action filter_type
action find
entity Q5115670
relation P937
type Q5119
['Q29468', 'P937', {'concept': 'Q5119'}]
SELECT DISTINCT ?r WHERE { resource:Q5115670 property:P937 ?r . ?r rdf:type ontology:Q5119 }
Chuck Quackenbush
action filter_type
action find
entity Chuck Quackenbush
relation work location
type capital
['Republican Party', 'work location', {'concept': 'capital'}]
SELECT DISTINCT ?r WHERE { resource:Chuck_Quackenbush property:work_location ?r . ?r rdf:type ontology:capital }
[]
capital
Q18013
SYSTEM
Sacramento
Q18013
(Q29468,P937,c(Q5119))
action filter_type
action find
entity Q5115670
relation P937
type Q5119
The work location of that person is in [ANSWER]
['Q29468', 'P937', {'concept': 'Q5119'}]
SELECT DISTINCT ?r WHERE { resource:Q5115670 property:P937 ?r . ?r rdf:type ontology:Q5119 }
Sacramento
The work location of that person is in Sacramento
Sacramento
action filter_type
action find
entity Chuck Quackenbush
relation work location
type capital
['Republican Party', 'work location', {'concept': 'capital'}]
SELECT DISTINCT ?r WHERE { resource:Chuck_Quackenbush property:work_location ?r . ?r rdf:type ontology:capital }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5115670
P69
Q163740
USER
Which nonprofit organization is the alma mater of that person ?
(Q18013,P69,c(Q163740))
action filter_type
action find
entity Q5115670
relation P69
type Q163740
['Q18013', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?a WHERE { resource:Q5115670 property:P69 ?a . ?a rdf:type ontology:Q163740 }
Chuck Quackenbush
action filter_type
action find
entity Chuck Quackenbush
relation educated at
type nonprofit organization
['Sacramento', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?a WHERE { resource:Chuck_Quackenbush property:educated_at ?a . ?a rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q178848
SYSTEM
University of Notre Dame
Q178848
(Q18013,P69,c(Q163740))
action filter_type
action find
entity Q5115670
relation P69
type Q163740
[ANSWER] is the alma mater of that person
['Q18013', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?a WHERE { resource:Q5115670 property:P69 ?a . ?a rdf:type ontology:Q163740 }
University of Notre Dame
University of Notre Dame is the alma mater of that person
University of Notre Dame
action filter_type
action find
entity Chuck Quackenbush
relation educated at
type nonprofit organization
['Sacramento', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?a WHERE { resource:Chuck_Quackenbush property:educated_at ?a . ?a rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18013
P931
Q62447
USER
Which aerodromes are served by Sacramento ?
(c(Q62447),P931,Q18013)
action filter_type
action find_reverse
entity Q18013
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q18013']
SELECT DISTINCT ?d WHERE { ?d property:P931 resource:Q18013 . ?d rdf:type ontology:Q62447 }
Sacramento
action filter_type
action find_reverse
entity Sacramento
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Sacramento']
SELECT DISTINCT ?d WHERE { ?d property:place_served_by_airport resource:Sacramento . ?d rdf:type ontology:aerodrome }
[]
aerodrome
Q7396997 Q650456 Q1432668
SYSTEM
Sacramento Mather Airport, McClellan Airfield, Sacramento International Airport
Q7396997 Q650456 Q1432668
(c(Q62447),P931,Q18013)
action filter_type
action find_reverse
entity Q18013
relation P931
type Q62447
Airport [ANSWERS] are served by Sacramento
[{'concept': 'Q62447'}, 'P931', 'Q18013']
SELECT DISTINCT ?d WHERE { ?d property:P931 resource:Q18013 . ?d rdf:type ontology:Q62447 }
Sacramento Mather Airport McClellan Airfield Sacramento International Airport
Airport Sacramento Mather Airport, McClellan Airfield and Sacramento International Airport are served by Sacramento
Sacramento Mather Airport McClellan Airfield Sacramento International Airport
action filter_type
action find_reverse
entity Sacramento
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Sacramento']
SELECT DISTINCT ?d WHERE { ?d property:place_served_by_airport resource:Sacramento . ?d rdf:type ontology:aerodrome }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18013
P740
Q2088357
USER
What were formed at that capital ?
(c(Q2088357),P740,Q7396997) (c(Q2088357),P740,Q650456) (c(Q2088357),P740,Q1432668)
action filter_type
action find_reverse
entity Q18013
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q7396997'] [{'concept': 'Q2088357'}, 'P740', 'Q650456'] [{'concept': 'Q2088357'}, 'P740', 'Q1432668']
SELECT DISTINCT ?y WHERE { ?y property:P740 resource:Q18013 . ?y rdf:type ontology:Q2088357 }
Sacramento
action filter_type
action find_reverse
entity Sacramento
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Sacramento Mather Airport'] [{'concept': 'musical ensemble'}, 'location of formation', 'McClellan Airfield'] [{'concept': 'musical ensemble'}, 'location of formation', 'Sacramento International Airport']
SELECT DISTINCT ?y WHERE { ?y property:location_of_formation resource:Sacramento . ?y rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q3020722 Q838206 Q15053575
SYSTEM
Death Grips, Little Charlie & the Nightcats, Killing the Dream
Q6841265 Q20014465 Q953444 Q3020722 Q838206 Q15053575 Q1103063 Q867390 Q16839573 Q4749792 Q4051718 Q7744405 Q6146524 Q1668656 Q1216920 Q5558418 Q5163192 Q16827697 Q8028035 Q3090295 Q1050910 Q7337017 Q908167
(c(Q2088357),P740,Q7396997) (c(Q2088357),P740,Q650456) (c(Q2088357),P740,Q1432668)
action filter_type
action find_reverse
entity Q18013
relation P740
type Q2088357
Death Grips, Little Charlie & the Nightcats and killing the Dream were formed at that capital
[{'concept': 'Q2088357'}, 'P740', 'Q7396997'] [{'concept': 'Q2088357'}, 'P740', 'Q650456'] [{'concept': 'Q2088357'}, 'P740', 'Q1432668']
SELECT DISTINCT ?y WHERE { ?y property:P740 resource:Q18013 . ?y rdf:type ontology:Q2088357 }
Middle Class Rut Secret Band Team Sleep Death Grips Little Charlie & the Nightcats Killing the Dream Club Nouveau Cimorelli Golden Youth An Angle Trash Talk The Kimberly Trip Jamie's Elsewhere The Revolution Smile Die Trying Giant Squid Consider the Thief Conducting from the Grave With Passion Hella Catherine Riven Embrace the End
Death Grips, Little Charlie & the Nightcats and killing the Dream were formed at that capital
Death Grips Little Charlie & the Nightcats Killing the Dream
action filter_type
action find_reverse
entity Sacramento
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Sacramento Mather Airport'] [{'concept': 'musical ensemble'}, 'location of formation', 'McClellan Airfield'] [{'concept': 'musical ensemble'}, 'location of formation', 'Sacramento International Airport']
SELECT DISTINCT ?y WHERE { ?y property:location_of_formation resource:Sacramento . ?y rdf:type ontology:musical_ensemble }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3704270 Q18013
P19 P190
Q56061
USER
Which administrative territories are twin cities of Sacramento or are the birthplace of Deandre Latimore ?
OR((Q18013,P190,c(Q56061)), (Q3704270,P19,c(Q56061)))
action filter_type
action union
action find
entity Q18013
relation P190
action find
entity Q3704270
relation P19
type Q56061
{'OR': [['Q18013', 'P190', {'concept': 'Q56061'}], ['Q3704270', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q3704270 property:P19 ?u } UNION { resource:Q18013 property:P190 ?u } } . ?u rdf:type ontology:Q56061 }
Deandre Latimore Sacramento
action filter_type
action union
action find
entity Sacramento
relation sister city
action find
entity Deandre Latimore
relation place of birth
type administrative territorial entity
{'OR': [['Sacramento', 'sister city', {'concept': 'administrative territorial entity'}], ['Deandre Latimore', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Deandre_Latimore property:place_of_birth ?u } UNION { resource:Sacramento property:sister_city ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5776 Q200028 Q200022 Q8818 Q21197 Q38022 Q60956
SYSTEM
Bethlehem, Hamilton, Matsuyama, Valencia, Chișinău, St. Louis, Ashkelon
Q5776 Q200028 Q200022 Q8818 Q21197 Q38022 Q60956
OR((Q18013,P190,c(Q56061)), (Q3704270,P19,c(Q56061)))
action filter_type
action union
action find
entity Q18013
relation P190
action find
entity Q3704270
relation P19
type Q56061
[ANSWERS] are twin cities of Sacramento or are the birthplace of Deandre Latimore
{'OR': [['Q18013', 'P190', {'concept': 'Q56061'}], ['Q3704270', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q3704270 property:P19 ?u } UNION { resource:Q18013 property:P190 ?u } } . ?u rdf:type ontology:Q56061 }
Bethlehem Hamilton Matsuyama Valencia Chișinău St. Louis Ashkelon
Bethlehem, Hamilton, Matsuyama, Valencia, Chișinău, St. Louis and Ashkelon are twin cities of Sacramento or are the birthplace of Deandre Latimore
Bethlehem Hamilton Matsuyama Valencia Chișinău St. Louis Ashkelon
action filter_type
action union
action find
entity Sacramento
relation sister city
action find
entity Deandre Latimore
relation place of birth
type administrative territorial entity
{'OR': [['Sacramento', 'sister city', {'concept': 'administrative territorial entity'}], ['Deandre Latimore', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Deandre_Latimore property:place_of_birth ?u } UNION { resource:Sacramento property:sister_city ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1376
Q1048835 Q7275
USER
How many political territories or states have that administrative territory as their capital ?
(Q8818,P1376,c(Q1048835)) (Q8818,P1376,c(Q7275)) (Q5776,P1376,c(Q1048835)) (Q5776,P1376,c(Q7275)) (Q200028,P1376,c(Q1048835)) (Q200028,P1376,c(Q7275)) (Q200022,P1376,c(Q1048835)) (Q200022,P1376,c(Q7275)) (Q8818,P1376,c(Q1048835)) (Q8818,P1376,c(Q7275)) (Q21197,P1376,c(Q1048835)) (Q21197,P1376,c(Q7275)) (Q38022,P1376,c(Q1048835)) (Q38022,P1376,c(Q7275)) (Q60956,P1376,c(Q1048835)) (Q60956,P1376,c(Q7275))
['Q8818', 'P1376', {'concept': 'Q1048835'}] ['Q8818', 'P1376', {'concept': 'Q7275'}] ['Q5776', 'P1376', {'concept': 'Q1048835'}] ['Q5776', 'P1376', {'concept': 'Q7275'}] ['Q200028', 'P1376', {'concept': 'Q1048835'}] ['Q200028', 'P1376', {'concept': 'Q7275'}] ['Q200022', 'P1376', {'concept': 'Q1048835'}] ['Q200022', 'P1376', {'concept': 'Q7275'}] ['Q8818', 'P1376', {'concept': 'Q1048835'}] ['Q8818', 'P1376', {'concept': 'Q7275'}] ['Q21197', 'P1376', {'concept': 'Q1048835'}] ['Q21197', 'P1376', {'concept': 'Q7275'}] ['Q38022', 'P1376', {'concept': 'Q1048835'}] ['Q38022', 'P1376', {'concept': 'Q7275'}] ['Q60956', 'P1376', {'concept': 'Q1048835'}] ['Q60956', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q8818 property:P1376 ?z } UNION { resource:Q8818 property:P1376 ?y } UNION { resource:Q19873368 property:P1376 ?z } UNION { resource:Q19873368 property:P1376 ?y } UNION { resource:Q22678066 property:P1376 ?z } UNION { resource:Q22678066 property:P1376 ?y } UNION { resource:Q21489268 property:P1376 ?z } UNION { resource:Q21489268 property:P1376 ?y } UNION { resource:Q8818 property:P1376 ?z } UNION { resource:Q8818 property:P1376 ?y } UNION { resource:Q21197 property:P1376 ?z } UNION { resource:Q21197 property:P1376 ?y } UNION { resource:Q2204776 property:P1376 ?z } UNION { resource:Q2204776 property:P1376 ?y } UNION { resource:Q4805190 property:P1376 ?z } UNION { resource:Q4805190 property:P1376 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q7275 }
['Valencia', 'capital of', {'concept': 'political territorial entity'}] ['Valencia', 'capital of', {'concept': 'state'}] ['Bethlehem', 'capital of', {'concept': 'political territorial entity'}] ['Bethlehem', 'capital of', {'concept': 'state'}] ['Hamilton', 'capital of', {'concept': 'political territorial entity'}] ['Hamilton', 'capital of', {'concept': 'state'}] ['Matsuyama', 'capital of', {'concept': 'political territorial entity'}] ['Matsuyama', 'capital of', {'concept': 'state'}] ['Valencia', 'capital of', {'concept': 'political territorial entity'}] ['Valencia', 'capital of', {'concept': 'state'}] ['Chișinău', 'capital of', {'concept': 'political territorial entity'}] ['Chișinău', 'capital of', {'concept': 'state'}] ['St. Louis', 'capital of', {'concept': 'political territorial entity'}] ['St. Louis', 'capital of', {'concept': 'state'}] ['Ashkelon', 'capital of', {'concept': 'political territorial entity'}] ['Ashkelon', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Valencia property:capital_of ?z } UNION { resource:Valencia property:capital_of ?y } UNION { resource:Bethlehem property:capital_of ?z } UNION { resource:Bethlehem property:capital_of ?y } UNION { resource:Hamilton property:capital_of ?z } UNION { resource:Hamilton property:capital_of ?y } UNION { resource:Matsuyama property:capital_of ?z } UNION { resource:Matsuyama property:capital_of ?y } UNION { resource:Valencia property:capital_of ?z } UNION { resource:Valencia property:capital_of ?y } UNION { resource:Chișinău property:capital_of ?z } UNION { resource:Chișinău property:capital_of ?y } UNION { resource:St._Louis property:capital_of ?z } UNION { resource:St._Louis property:capital_of ?y } UNION { resource:Ashkelon property:capital_of ?z } UNION { resource:Ashkelon property:capital_of ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:state }
[]
political territorial entity state
Quantitative|Count|Mult. entity type|Clarification
Q38022
SYSTEM
Did you mean St. Louis ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q8818 property:P1376 ?z } UNION { resource:Q8818 property:P1376 ?y } UNION { resource:Q19873368 property:P1376 ?z } UNION { resource:Q19873368 property:P1376 ?y } UNION { resource:Q22678066 property:P1376 ?z } UNION { resource:Q22678066 property:P1376 ?y } UNION { resource:Q21489268 property:P1376 ?z } UNION { resource:Q21489268 property:P1376 ?y } UNION { resource:Q8818 property:P1376 ?z } UNION { resource:Q8818 property:P1376 ?y } UNION { resource:Q21197 property:P1376 ?z } UNION { resource:Q21197 property:P1376 ?y } UNION { resource:Q2204776 property:P1376 ?z } UNION { resource:Q2204776 property:P1376 ?y } UNION { resource:Q4805190 property:P1376 ?z } UNION { resource:Q4805190 property:P1376 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q7275 }
Did you mean St. Louis ?
St. Louis
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Valencia property:capital_of ?z } UNION { resource:Valencia property:capital_of ?y } UNION { resource:Bethlehem property:capital_of ?z } UNION { resource:Bethlehem property:capital_of ?y } UNION { resource:Hamilton property:capital_of ?z } UNION { resource:Hamilton property:capital_of ?y } UNION { resource:Matsuyama property:capital_of ?z } UNION { resource:Matsuyama property:capital_of ?y } UNION { resource:Valencia property:capital_of ?z } UNION { resource:Valencia property:capital_of ?y } UNION { resource:Chișinău property:capital_of ?z } UNION { resource:Chișinău property:capital_of ?y } UNION { resource:St._Louis property:capital_of ?z } UNION { resource:St._Louis property:capital_of ?y } UNION { resource:Ashkelon property:capital_of ?z } UNION { resource:Ashkelon property:capital_of ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:state }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Valencia. Could you tell me the answer for that?
(Q8818,P1376,c(Q1048835)) (Q8818,P1376,c(Q7275)) (Q5776,P1376,c(Q1048835)) (Q5776,P1376,c(Q7275)) (Q200028,P1376,c(Q1048835)) (Q200028,P1376,c(Q7275)) (Q200022,P1376,c(Q1048835)) (Q200022,P1376,c(Q7275)) (Q8818,P1376,c(Q1048835)) (Q8818,P1376,c(Q7275)) (Q21197,P1376,c(Q1048835)) (Q21197,P1376,c(Q7275)) (Q38022,P1376,c(Q1048835)) (Q38022,P1376,c(Q7275)) (Q60956,P1376,c(Q1048835)) (Q60956,P1376,c(Q7275))
Q8818
['Q8818', 'P1376', {'concept': 'Q1048835'}] ['Q8818', 'P1376', {'concept': 'Q7275'}] ['Q5776', 'P1376', {'concept': 'Q1048835'}] ['Q5776', 'P1376', {'concept': 'Q7275'}] ['Q200028', 'P1376', {'concept': 'Q1048835'}] ['Q200028', 'P1376', {'concept': 'Q7275'}] ['Q200022', 'P1376', {'concept': 'Q1048835'}] ['Q200022', 'P1376', {'concept': 'Q7275'}] ['Q8818', 'P1376', {'concept': 'Q1048835'}] ['Q8818', 'P1376', {'concept': 'Q7275'}] ['Q21197', 'P1376', {'concept': 'Q1048835'}] ['Q21197', 'P1376', {'concept': 'Q7275'}] ['Q38022', 'P1376', {'concept': 'Q1048835'}] ['Q38022', 'P1376', {'concept': 'Q7275'}] ['Q60956', 'P1376', {'concept': 'Q1048835'}] ['Q60956', 'P1376', {'concept': 'Q7275'}]
['Valencia', 'capital of', {'concept': 'political territorial entity'}] ['Valencia', 'capital of', {'concept': 'state'}] ['Bethlehem', 'capital of', {'concept': 'political territorial entity'}] ['Bethlehem', 'capital of', {'concept': 'state'}] ['Hamilton', 'capital of', {'concept': 'political territorial entity'}] ['Hamilton', 'capital of', {'concept': 'state'}] ['Matsuyama', 'capital of', {'concept': 'political territorial entity'}] ['Matsuyama', 'capital of', {'concept': 'state'}] ['Valencia', 'capital of', {'concept': 'political territorial entity'}] ['Valencia', 'capital of', {'concept': 'state'}] ['Chișinău', 'capital of', {'concept': 'political territorial entity'}] ['Chișinău', 'capital of', {'concept': 'state'}] ['St. Louis', 'capital of', {'concept': 'political territorial entity'}] ['St. Louis', 'capital of', {'concept': 'state'}] ['Ashkelon', 'capital of', {'concept': 'political territorial entity'}] ['Ashkelon', 'capital of', {'concept': 'state'}]
[]
SYSTEM
2
Q5720 Q142417
(Q8818,P1376,c(Q1048835)) (Q8818,P1376,c(Q7275)) (Q5776,P1376,c(Q1048835)) (Q5776,P1376,c(Q7275)) (Q200028,P1376,c(Q1048835)) (Q200028,P1376,c(Q7275)) (Q200022,P1376,c(Q1048835)) (Q200022,P1376,c(Q7275)) (Q8818,P1376,c(Q1048835)) (Q8818,P1376,c(Q7275)) (Q21197,P1376,c(Q1048835)) (Q21197,P1376,c(Q7275)) (Q38022,P1376,c(Q1048835)) (Q38022,P1376,c(Q7275)) (Q60956,P1376,c(Q1048835)) (Q60956,P1376,c(Q7275))
[ANSWER]
['Q8818', 'P1376', {'concept': 'Q1048835'}] ['Q8818', 'P1376', {'concept': 'Q7275'}] ['Q5776', 'P1376', {'concept': 'Q1048835'}] ['Q5776', 'P1376', {'concept': 'Q7275'}] ['Q200028', 'P1376', {'concept': 'Q1048835'}] ['Q200028', 'P1376', {'concept': 'Q7275'}] ['Q200022', 'P1376', {'concept': 'Q1048835'}] ['Q200022', 'P1376', {'concept': 'Q7275'}] ['Q8818', 'P1376', {'concept': 'Q1048835'}] ['Q8818', 'P1376', {'concept': 'Q7275'}] ['Q21197', 'P1376', {'concept': 'Q1048835'}] ['Q21197', 'P1376', {'concept': 'Q7275'}] ['Q38022', 'P1376', {'concept': 'Q1048835'}] ['Q38022', 'P1376', {'concept': 'Q7275'}] ['Q60956', 'P1376', {'concept': 'Q1048835'}] ['Q60956', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q8818 property:P1376 ?z } UNION { resource:Q8818 property:P1376 ?y } UNION { resource:Q19873368 property:P1376 ?z } UNION { resource:Q19873368 property:P1376 ?y } UNION { resource:Q22678066 property:P1376 ?z } UNION { resource:Q22678066 property:P1376 ?y } UNION { resource:Q21489268 property:P1376 ?z } UNION { resource:Q21489268 property:P1376 ?y } UNION { resource:Q8818 property:P1376 ?z } UNION { resource:Q8818 property:P1376 ?y } UNION { resource:Q21197 property:P1376 ?z } UNION { resource:Q21197 property:P1376 ?y } UNION { resource:Q2204776 property:P1376 ?z } UNION { resource:Q2204776 property:P1376 ?y } UNION { resource:Q4805190 property:P1376 ?z } UNION { resource:Q4805190 property:P1376 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q7275 }
Valencian Country Kingdom of Valencia
2
['Valencia', 'capital of', {'concept': 'political territorial entity'}] ['Valencia', 'capital of', {'concept': 'state'}] ['Bethlehem', 'capital of', {'concept': 'political territorial entity'}] ['Bethlehem', 'capital of', {'concept': 'state'}] ['Hamilton', 'capital of', {'concept': 'political territorial entity'}] ['Hamilton', 'capital of', {'concept': 'state'}] ['Matsuyama', 'capital of', {'concept': 'political territorial entity'}] ['Matsuyama', 'capital of', {'concept': 'state'}] ['Valencia', 'capital of', {'concept': 'political territorial entity'}] ['Valencia', 'capital of', {'concept': 'state'}] ['Chișinău', 'capital of', {'concept': 'political territorial entity'}] ['Chișinău', 'capital of', {'concept': 'state'}] ['St. Louis', 'capital of', {'concept': 'political territorial entity'}] ['St. Louis', 'capital of', {'concept': 'state'}] ['Ashkelon', 'capital of', {'concept': 'political territorial entity'}] ['Ashkelon', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Valencia property:capital_of ?z } UNION { resource:Valencia property:capital_of ?y } UNION { resource:Bethlehem property:capital_of ?z } UNION { resource:Bethlehem property:capital_of ?y } UNION { resource:Hamilton property:capital_of ?z } UNION { resource:Hamilton property:capital_of ?y } UNION { resource:Matsuyama property:capital_of ?z } UNION { resource:Matsuyama property:capital_of ?y } UNION { resource:Valencia property:capital_of ?z } UNION { resource:Valencia property:capital_of ?y } UNION { resource:Chișinău property:capital_of ?z } UNION { resource:Chișinău property:capital_of ?y } UNION { resource:St._Louis property:capital_of ?z } UNION { resource:St._Louis property:capital_of ?y } UNION { resource:Ashkelon property:capital_of ?z } UNION { resource:Ashkelon property:capital_of ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19414051 Q200022
P17
Q15617994
USER
Which administrative territories are Matsuyama or Pieter Steijnstraat a part of ?
OR((Q200022,P17,c(Q15617994)), (Q19414051,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q200022
relation P17
action find
entity Q19414051
relation P17
type Q15617994
{'OR': [['Q200022', 'P17', {'concept': 'Q15617994'}], ['Q19414051', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q19414051 property:P17 ?r } UNION { resource:Q200022 property:P17 ?r } } }
Pieter Steijnstraat Matsuyama
action filter_type
action union
action find
entity Matsuyama
relation country
action find
entity Pieter Steijnstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Matsuyama', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pieter Steijnstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pieter_Steijnstraat property:country ?r } UNION { resource:Matsuyama property:country ?r } } }
[]
designation for an administrative territorial entity
Q17 Q55
SYSTEM
Japan, Netherlands
Q17 Q55
OR((Q200022,P17,c(Q15617994)), (Q19414051,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q200022
relation P17
action find
entity Q19414051
relation P17
type Q15617994
[ANSWERS] are Matsuyama or Pieter Steijnstraat a part of
{'OR': [['Q200022', 'P17', {'concept': 'Q15617994'}], ['Q19414051', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q19414051 property:P17 ?r } UNION { resource:Q200022 property:P17 ?r } } }
Japan Netherlands
Japan and Netherlands are Matsuyama or Pieter Steijnstraat a part of
Japan Netherlands
action filter_type
action union
action find
entity Matsuyama
relation country
action find
entity Pieter Steijnstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Matsuyama', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pieter Steijnstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pieter_Steijnstraat property:country ?r } UNION { resource:Matsuyama property:country ?r } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q178848
P17
Q15617994
USER
How many administrative territories are University of Notre Dame a part of ?
(Q178848,P17,c(Q15617994))
action count
action filter_type
action find
entity Q178848
relation P17
type Q15617994
['Q178848', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v rdf:type ontology:Q15617994 . resource:Q178848 property:P17 ?v }
University of Notre Dame
action count
action filter_type
action find
entity University of Notre Dame
relation country
type designation for an administrative territorial entity
['University of Notre Dame', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:University_of_Notre_Dame property:country ?v }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q178848,P17,c(Q15617994))
action count
action filter_type
action find
entity Q178848
relation P17
type Q15617994
[ANSWER]
['Q178848', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v rdf:type ontology:Q15617994 . resource:Q178848 property:P17 ?v }
United States of America
1
action count
action filter_type
action find
entity University of Notre Dame
relation country
type designation for an administrative territorial entity
['University of Notre Dame', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:University_of_Notre_Dame property:country ?v }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q26450616
Q15617994
USER
And also tell me about The Farmhouse?
(Q26450616,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26450616
relation P17
type Q15617994
['Q26450616', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q26450616 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
The Farmhouse
action count
action filter_type
action find
entity The Farmhouse
relation country
type designation for an administrative territorial entity
['The Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:The_Farmhouse property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q26450616,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26450616
relation P17
type Q15617994
[ANSWER]
['Q26450616', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q26450616 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity The Farmhouse
relation country
type designation for an administrative territorial entity
['The Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:The_Farmhouse property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26450616
P1435
Q41176
USER
Which building heritage status does that house have ?
action filter_type
action find
entity Q26450616
relation P1435
type Q41176
SELECT DISTINCT ?u WHERE { resource:Q26450616 property:P1435 ?u . ?u rdf:type ontology:Q41176 }
The Farmhouse
action filter_type
action find
entity The Farmhouse
relation heritage status
type building
SELECT DISTINCT ?u WHERE { resource:The_Farmhouse property:heritage_status ?u . ?u rdf:type ontology:building }
[]
building
Q15700834
SYSTEM
Grade II listed building
Q15700834
action filter_type
action find
entity Q26450616
relation P1435
type Q41176
That house has a [ANSWER]
SELECT DISTINCT ?u WHERE { resource:Q26450616 property:P1435 ?u . ?u rdf:type ontology:Q41176 }
Grade II listed building
That house has a Grade II listed building
Grade II listed building
action filter_type
action find
entity The Farmhouse
relation heritage status
type building
SELECT DISTINCT ?u WHERE { resource:The_Farmhouse property:heritage_status ?u . ?u rdf:type ontology:building }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8818
P6
Q502895
USER
Which people have Valencia as their heads of government ?
(Q8818,P6,c(Q502895))
action filter_type
action find
entity Q8818
relation P6
type Q502895
['Q8818', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q8818 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Valencia
action filter_type
action find
entity Valencia
relation head of government
type common name
['Valencia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Valencia property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
common name
Q9012047 Q433210 Q3066472
SYSTEM
Joan Ribó, Rita Barberá Nolla, Ricard Pérez Casado
Q433210 Q9012047 Q8346891 Q3066472
(Q8818,P6,c(Q502895))
action filter_type
action find
entity Q8818
relation P6
type Q502895
[ANSWERS] have Valencia as their heads of government
['Q8818', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q8818 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Rita Barberá Nolla Joan Ribó Clementina Ródenas i Villena Ricard Pérez Casado
Joan Ribó, Rita Barberá Nolla and Ricard Pérez Casado have Valencia as their heads of government
Joan Ribó Rita Barberá Nolla Ricard Pérez Casado
action filter_type
action find
entity Valencia
relation head of government
type common name
['Valencia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Valencia property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]