Simple Question (Direct)
Simple Question
Q6321951
P69
Q163740
USER
What are the nonprofit organizations where William Campbell were educated ?
(Q6321951,P69,c(Q163740))
action filter_type
action find
entity Q6321951
relation P69
type Q163740
['Q6321951', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q163740 . resource:Q6321951 property:P69 ?s }
William Campbell
action filter_type
action find
entity William Campbell
relation educated at
type nonprofit organization
['William Campbell', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:nonprofit_organization . resource:William_Campbell property:educated_at ?s }
[]
nonprofit organization
Q49088 Q7691246
SYSTEM
Columbia University, Teachers College
Q49088 Q7691246
(Q6321951,P69,c(Q163740))
action filter_type
action find
entity Q6321951
relation P69
type Q163740
The nonprofit organizations William Campbell were educated are at [ANSWERS]
['Q6321951', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q163740 . resource:Q6321951 property:P69 ?s }
Columbia University Teachers College
The nonprofit organizations William Campbell were educated are at Columbia University and Teachers College
Columbia University Teachers College
action filter_type
action find
entity William Campbell
relation educated at
type nonprofit organization
['William Campbell', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:nonprofit_organization . resource:William_Campbell property:educated_at ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6321951
P20
Q56061
USER
Where did William Campbell die ?
(Q6321951,P20,c(Q56061))
action filter_type
action find
entity Q6321951
relation P20
type Q56061
['Q6321951', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q6321951 property:P20 ?j . ?j rdf:type ontology:Q56061 }
William Campbell
action filter_type
action find
entity William Campbell
relation place of death
type administrative territorial entity
['William Campbell', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:William_Campbell property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q47265
SYSTEM
Palo Alto
Q47265
(Q6321951,P20,c(Q56061))
action filter_type
action find
entity Q6321951
relation P20
type Q56061
William Campbell died in [ANSWER]
['Q6321951', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q6321951 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Palo Alto
William Campbell died in Palo Alto
Palo Alto
action filter_type
action find
entity William Campbell
relation place of death
type administrative territorial entity
['William Campbell', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:William_Campbell property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1704728
Q56061
USER
And what about Josef Hahn?
(Q1704728,P20,c(Q56061))
action filter_type
action find
entity Q1704728
relation P20
type Q56061
['Q1704728', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1704728 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Josef Hahn
action filter_type
action find
entity Josef Hahn
relation place of death
type administrative territorial entity
['Josef Hahn', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Josef_Hahn property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8686
SYSTEM
Shanghai
Q8686
(Q1704728,P20,c(Q56061))
action filter_type
action find
entity Q1704728
relation P20
type Q56061
[ANSWER]
['Q1704728', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1704728 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Shanghai
Shanghai
action filter_type
action find
entity Josef Hahn
relation place of death
type administrative territorial entity
['Josef Hahn', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Josef_Hahn property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8686
P47
Q515
USER
Who shares the border with that administrative territory ?
(Q8686,P47,c(Q515))
action filter_type
action find
entity Q8686
relation P47
type Q515
['Q8686', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q8686 property:P47 ?g . ?g rdf:type ontology:Q515 }
Shanghai
action filter_type
action find
entity Shanghai
relation shares border with
type city
['Shanghai', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Shanghai property:shares_border_with ?g . ?g rdf:type ontology:city }
[]
city
Q42622
SYSTEM
Suzhou
Q42622
(Q8686,P47,c(Q515))
action filter_type
action find
entity Q8686
relation P47
type Q515
[ANSWER] shares the border with that administrative territory
['Q8686', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q8686 property:P47 ?g . ?g rdf:type ontology:Q515 }
Suzhou
Suzhou shares the border with that administrative territory
Suzhou
action filter_type
action find
entity Shanghai
relation shares border with
type city
['Shanghai', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Shanghai property:shares_border_with ?g . ?g rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q42622 Q12193
P190
Q20667921
USER
Is Brest the sister city of that one ?
(Q42622,P190,Q12193)
action is_in
entity Q12193
action find
entity Q42622
relation P190
['Q42622', 'P190', 'Q12193']
ASK WHERE { resource:Q42622 property:P190 resource:Q12193 }
Suzhou Brest
action is_in
entity Brest
action find
entity Suzhou
relation sister city
['Suzhou', 'sister city', 'Brest']
ASK WHERE { resource:Suzhou property:sister_city resource:Brest }
[]
type of french administrative division
SYSTEM
YES
(Q42622,P190,Q12193)
action is_in
entity Q12193
action find
entity Q42622
relation P190
[ANSWER]
['Q42622', 'P190', 'Q12193']
ASK WHERE { resource:Q42622 property:P190 resource:Q12193 }
Yes
action is_in
entity Brest
action find
entity Suzhou
relation sister city
['Suzhou', 'sister city', 'Brest']
ASK WHERE { resource:Suzhou property:sister_city resource:Brest }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q47265
P159
Q334453 Q1269299
USER
How many divisions or business organizations have headquarters located at Palo Alto ?
(c(Q334453),P159,Q47265) (c(Q1269299),P159,Q47265)
action count
action union
action filter_type
action find_reverse
entity Q47265
relation P159
type Q334453
action filter_type
action find_reverse
entity Q47265
relation P159
type Q1269299
[{'concept': 'Q334453'}, 'P159', 'Q47265'] [{'concept': 'Q1269299'}, 'P159', 'Q47265']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?j ) { ( ontology:Q334453 ) ( ontology:Q1269299 ) } . ?h rdf:type ?j }
Palo Alto
action count
action union
action filter_type
action find_reverse
entity Palo Alto
relation headquarters location
type division
action filter_type
action find_reverse
entity Palo Alto
relation headquarters location
type type of business entity
[{'concept': 'division'}, 'headquarters location', 'Palo Alto'] [{'concept': 'type of business entity'}, 'headquarters location', 'Palo Alto']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?j ) { ( ontology:division ) ( ontology:type_of_business_entity ) } . ?h rdf:type ?j }
[]
division type of business entity
SYSTEM
2
Q933025 Q478214
(c(Q334453),P159,Q47265) (c(Q1269299),P159,Q47265)
action count
action union
action filter_type
action find_reverse
entity Q47265
relation P159
type Q334453
action filter_type
action find_reverse
entity Q47265
relation P159
type Q1269299
[ANSWER]
[{'concept': 'Q334453'}, 'P159', 'Q47265'] [{'concept': 'Q1269299'}, 'P159', 'Q47265']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?j ) { ( ontology:Q334453 ) ( ontology:Q1269299 ) } . ?h rdf:type ?j }
Windham Hill Records Tesla Motors
2
action count
action union
action filter_type
action find_reverse
entity Palo Alto
relation headquarters location
type division
action filter_type
action find_reverse
entity Palo Alto
relation headquarters location
type type of business entity
[{'concept': 'division'}, 'headquarters location', 'Palo Alto'] [{'concept': 'type of business entity'}, 'headquarters location', 'Palo Alto']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?j ) { ( ontology:division ) ( ontology:type_of_business_entity ) } . ?h rdf:type ?j }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q47265
P159
Q1269299 Q874405
USER
How many business organizations or social groups have the principal seat at Palo Alto ?
(c(Q1269299),P159,Q47265) (c(Q874405),P159,Q47265)
action count
action union
action filter_type
action find_reverse
entity Q47265
relation P159
type Q1269299
action filter_type
action find_reverse
entity Q47265
relation P159
type Q874405
[{'concept': 'Q1269299'}, 'P159', 'Q47265'] [{'concept': 'Q874405'}, 'P159', 'Q47265']
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { VALUES ( ?b ) { ( ontology:Q1269299 ) ( ontology:Q874405 ) } . ?a rdf:type ?b }
Palo Alto
action count
action union
action filter_type
action find_reverse
entity Palo Alto
relation headquarters location
type type of business entity
action filter_type
action find_reverse
entity Palo Alto
relation headquarters location
type social group
[{'concept': 'type of business entity'}, 'headquarters location', 'Palo Alto'] [{'concept': 'social group'}, 'headquarters location', 'Palo Alto']
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { VALUES ( ?b ) { ( ontology:type_of_business_entity ) ( ontology:social_group ) } . ?a rdf:type ?b }
[]
type of business entity social group
SYSTEM
2
Q478214 Q6378666
(c(Q1269299),P159,Q47265) (c(Q874405),P159,Q47265)
action count
action union
action filter_type
action find_reverse
entity Q47265
relation P159
type Q1269299
action filter_type
action find_reverse
entity Q47265
relation P159
type Q874405
[ANSWER]
[{'concept': 'Q1269299'}, 'P159', 'Q47265'] [{'concept': 'Q874405'}, 'P159', 'Q47265']
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { VALUES ( ?b ) { ( ontology:Q1269299 ) ( ontology:Q874405 ) } . ?a rdf:type ?b }
Tesla Motors Kauffman Fellows Program
2
action count
action union
action filter_type
action find_reverse
entity Palo Alto
relation headquarters location
type type of business entity
action filter_type
action find_reverse
entity Palo Alto
relation headquarters location
type social group
[{'concept': 'type of business entity'}, 'headquarters location', 'Palo Alto'] [{'concept': 'social group'}, 'headquarters location', 'Palo Alto']
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { VALUES ( ?b ) { ( ontology:type_of_business_entity ) ( ontology:social_group ) } . ?a rdf:type ?b }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q4497628 Q42622
P19 P190
Q515
USER
Which cities are the sister cities of Suzhou and were David Hilchen born at ?
AND((Q42622,P190,c(Q515)), (Q4497628,P19,c(Q515)))
action filter_type
action intersection
action find
entity Q42622
relation P190
action find
entity Q4497628
relation P19
type Q515
{'AND': [['Q42622', 'P190', {'concept': 'Q515'}], ['Q4497628', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q4497628 property:P19 ?p . resource:Q42622 property:P190 ?p }
David Hilchen Suzhou
action filter_type
action intersection
action find
entity Suzhou
relation sister city
action find
entity David Hilchen
relation place of birth
type city
{'AND': [['Suzhou', 'sister city', {'concept': 'city'}], ['David Hilchen', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:David_Hilchen property:place_of_birth ?p . resource:Suzhou property:sister_city ?p }
[]
city
Q1773
SYSTEM
Riga
Q1773
AND((Q42622,P190,c(Q515)), (Q4497628,P19,c(Q515)))
action filter_type
action intersection
action find
entity Q42622
relation P190
action find
entity Q4497628
relation P19
type Q515
[ANSWER] is the sister cities of Suzhou and were David Hilchen born at
{'AND': [['Q42622', 'P190', {'concept': 'Q515'}], ['Q4497628', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q4497628 property:P19 ?p . resource:Q42622 property:P190 ?p }
Riga
Riga is the sister cities of Suzhou and were David Hilchen born at
Riga
action filter_type
action intersection
action find
entity Suzhou
relation sister city
action find
entity David Hilchen
relation place of birth
type city
{'AND': [['Suzhou', 'sister city', {'concept': 'city'}], ['David Hilchen', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:David_Hilchen property:place_of_birth ?p . resource:Suzhou property:sister_city ?p }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1773 Q21004848
P19
Q502895
USER
Does Kathy Aoki have birthplace at that city ?
(Q21004848,P19,Q1773)
action is_in
entity Q21004848
action find
entity Q1773
relation P19
['Q21004848', 'P19', 'Q1773']
ASK WHERE { resource:Q1773 property:P19 resource:Q21004848 }
Riga Kathy Aoki
action is_in
entity Kathy Aoki
action find
entity Riga
relation place of birth
['Kathy Aoki', 'place of birth', 'Riga']
ASK WHERE { resource:Riga property:place_of_birth resource:Kathy_Aoki }
[]
common name
SYSTEM
NO
(Q21004848,P19,Q1773)
action is_in
entity Q21004848
action find
entity Q1773
relation P19
[ANSWER]
['Q21004848', 'P19', 'Q1773']
ASK WHERE { resource:Q1773 property:P19 resource:Q21004848 }
No
action is_in
entity Kathy Aoki
action find
entity Riga
relation place of birth
['Kathy Aoki', 'place of birth', 'Riga']
ASK WHERE { resource:Riga property:place_of_birth resource:Kathy_Aoki }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q515 Q895526 Q334453
USER
How many cities are the head office for around 8 authority organs or divisions located ?
(c(Q895526)|c(Q334453),P159,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q895526
action find_reverse_tuple_counts
relation P159
type Q515
type Q334453
value 8
[[{'concept': 'Q895526'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) ?z WHERE { { ?w property:P159 ?z . ?z rdf:type ontology:Q515 . ?w rdf:type ontology:Q895526 } UNION { ?w property:P159 ?z . ?z rdf:type ontology:Q515 . ?w rdf:type ontology:Q334453 } } GROUP BY ?z } . FILTER ( ?t = 8 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type city
type division
value 8
[[{'concept': 'authority organ'}, {'concept': 'division'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) ?z WHERE { { ?w property:headquarters_location ?z . ?z rdf:type ontology:city . ?w rdf:type ontology:authority_organ } UNION { ?w property:headquarters_location ?z . ?z rdf:type ontology:city . ?w rdf:type ontology:division } } GROUP BY ?z } . FILTER ( ?t = 8 ) }
[]
city authority organ division
SYSTEM
7
Q3572 Q3692 Q1794 Q1519 Q3616 Q1533 Q1530
(c(Q895526)|c(Q334453),P159,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q895526
action find_reverse_tuple_counts
relation P159
type Q515
type Q334453
value 8
[ANSWER]
[[{'concept': 'Q895526'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) ?z WHERE { { ?w property:P159 ?z . ?z rdf:type ontology:Q515 . ?w rdf:type ontology:Q895526 } UNION { ?w property:P159 ?z . ?z rdf:type ontology:Q515 . ?w rdf:type ontology:Q334453 } } GROUP BY ?z } . FILTER ( ?t = 8 ) }
Tunis Riyadh Frankfurt Abu Dhabi Tehran Caracas Baghdad
7
action count
action approx
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type city
type division
value 8
[[{'concept': 'authority organ'}, {'concept': 'division'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) ?z WHERE { { ?w property:headquarters_location ?z . ?z rdf:type ontology:city . ?w rdf:type ontology:authority_organ } UNION { ?w property:headquarters_location ?z . ?z rdf:type ontology:city . ?w rdf:type ontology:division } } GROUP BY ?z } . FILTER ( ?t = 8 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q8686
P190
Q56061
USER
How many administrative territories are twin towns of Shanghai ?
(Q8686,P190,c(Q56061))
action count
action filter_type
action find
entity Q8686
relation P190
type Q56061
['Q8686', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q8686 property:P190 ?a }
Shanghai
action count
action filter_type
action find
entity Shanghai
relation sister city
type administrative territorial entity
['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Shanghai property:sister_city ?a }
[]
administrative territorial entity
SYSTEM
40
Q12892 Q3889 Q648 Q1861 Q35381 Q52535 Q24826 Q1297 Q1850 Q269 Q13580 Q36433 Q340 Q597491 Q109356 Q84 Q78 Q133073 Q49227 Q41621 Q37806 Q47034 Q612 Q585 Q43509 Q87 Q58976 Q34370 Q3856 Q406 Q34713 Q174 Q490 Q36647 Q33986 Q131694 Q1492 Q23311 Q959 Q62
(Q8686,P190,c(Q56061))
action count
action filter_type
action find
entity Q8686
relation P190
type Q56061
[ANSWER]
['Q8686', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q8686 property:P190 ?a }
Antwerp Maputo Lille Bangkok Colombo Rosario Liverpool Chicago Phnom Penh Tashkent Metro Manila Porto Montreal Okahandja Hamhung London Basel Dunedin Winston-Salem Haifa Port Vila Espoo Dubai Oslo Guayaquil Alexandria Piraeus Rotterdam Nicosia Istanbul Salzburg São Paulo Milan Cork Valparaíso Aden Barcelona City of London Vladivostok San Francisco
40
action count
action filter_type
action find
entity Shanghai
relation sister city
type administrative territorial entity
['Shanghai', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Shanghai property:sister_city ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8686
P840
Q838948
USER
Which works of art have their narrative set in that administrative territory ?
action filter_type
action find_reverse
entity Q8686
relation P840
type Q838948
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q838948 . ?v property:P840 resource:Q8686 }
Shanghai
action filter_type
action find_reverse
entity Shanghai
relation narrative location
type work of art
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:work_of_art . ?v property:narrative_location resource:Shanghai }
[]
work of art
Q4941 Q288173 Q718524
SYSTEM
Skyfall, Mission: Impossible III, Lust, Caution
Q53719 Q4941 Q718524 Q288173
action filter_type
action find_reverse
entity Q8686
relation P840
type Q838948
[ANSWERS]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q838948 . ?v property:P840 resource:Q8686 }
Looper Skyfall Lust, Caution Mission: Impossible III
Skyfall, Mission: Impossible III and Lust, Caution have their narrative set in that administrative territory
Skyfall Mission: Impossible III Lust, Caution
action filter_type
action find_reverse
entity Shanghai
relation narrative location
type work of art
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:work_of_art . ?v property:narrative_location resource:Shanghai }
[]