Simple Question (Direct)
Simple Question
Q394023
P641
Q349
USER
Which sport did Žigmund Pálffy participate in ?
(Q394023,P641,c(Q349))
action filter_type
action find
entity Q394023
relation P641
type Q349
['Q394023', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q394023 property:P641 ?h . ?h rdf:type ontology:Q349 }
Žigmund Pálffy
action filter_type
action find
entity Žigmund Pálffy
relation sport
type sport
['Žigmund Pálffy', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Žigmund_Pálffy property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q394023,P641,c(Q349))
action filter_type
action find
entity Q394023
relation P641
type Q349
Žigmund Pálffy participated in [ANSWER]
['Q394023', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q394023 property:P641 ?h . ?h rdf:type ontology:Q349 }
ice hockey
Žigmund Pálffy participated in ice hockey
ice hockey
action filter_type
action find
entity Žigmund Pálffy
relation sport
type sport
['Žigmund Pálffy', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Žigmund_Pálffy property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q394023
P27
Q15617994
USER
Which administrative territory does Žigmund Pálffy belong to ?
(Q394023,P27,c(Q15617994))
action filter_type
action find
entity Q394023
relation P27
type Q15617994
['Q394023', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q394023 property:P27 ?p }
Žigmund Pálffy
action filter_type
action find
entity Žigmund Pálffy
relation country of citizenship
type designation for an administrative territorial entity
['Žigmund Pálffy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Žigmund_Pálffy property:country_of_citizenship ?p }
[]
designation for an administrative territorial entity
Q214
SYSTEM
Slovakia
Q214
(Q394023,P27,c(Q15617994))
action filter_type
action find
entity Q394023
relation P27
type Q15617994
Žigmund Pálffy belongs to [ANSWER]
['Q394023', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q394023 property:P27 ?p }
Slovakia
Žigmund Pálffy belongs to Slovakia
Slovakia
action filter_type
action find
entity Žigmund Pálffy
relation country of citizenship
type designation for an administrative territorial entity
['Žigmund Pálffy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Žigmund_Pálffy property:country_of_citizenship ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P530
Q1048835
USER
How many political territories holds diplomatic relationship with that administrative territory ?
(Q214,P530,c(Q1048835))
action count
action filter_type
action find
entity Q214
relation P530
type Q1048835
['Q214', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Q214 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
action count
action filter_type
action find
entity Slovakia
relation diplomatic relation
type political territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Slovakia property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q183
(Q214,P530,c(Q1048835))
action count
action filter_type
action find
entity Q214
relation P530
type Q1048835
[ANSWER]
['Q214', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Q214 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
Germany
1
action count
action filter_type
action find
entity Slovakia
relation diplomatic relation
type political territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Slovakia property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q214
P530
Q1048835 Q15617994
USER
How many political territories and administrative territories have diplomatic relationships with Slovakia ?
(Q214,P530,c(Q1048835)) (Q214,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q214
relation P530
type Q1048835
action filter_type
action find
entity Q214
relation P530
type Q15617994
['Q214', 'P530', {'concept': 'Q1048835'}] ['Q214', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?v rdf:type ?c }
Slovakia
action count
action union
action filter_type
action find
entity Slovakia
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Slovakia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?v rdf:type ?c }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
1 political territories and 1 administrative territories
Q38 Q183
(Q214,P530,c(Q1048835)) (Q214,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q214
relation P530
type Q1048835
action filter_type
action find
entity Q214
relation P530
type Q15617994
[ANSWER]
['Q214', 'P530', {'concept': 'Q1048835'}] ['Q214', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?v rdf:type ?c }
Italy Germany
1 political territories and 1 administrative territories
action count
action union
action filter_type
action find
entity Slovakia
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Slovakia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?v rdf:type ?c }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6838656 Q394023
P54
Q12973014
USER
Which sports teams have Žigmund Pálffy or Mickey Heath as their member ?
OR((Q394023,P54,c(Q12973014)), (Q6838656,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q394023
relation P54
action find
entity Q6838656
relation P54
type Q12973014
{'OR': [['Q394023', 'P54', {'concept': 'Q12973014'}], ['Q6838656', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q394023 property:P54 ?b } UNION { resource:Q6838656 property:P54 ?b } } . ?b rdf:type ontology:Q12973014 }
Mickey Heath Žigmund Pálffy
action filter_type
action union
action find
entity Žigmund Pálffy
relation member of sports team
action find
entity Mickey Heath
relation member of sports team
type sports team
{'OR': [['Žigmund Pálffy', 'member of sports team', {'concept': 'sports team'}], ['Mickey Heath', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Žigmund_Pálffy property:member_of_sports_team ?b } UNION { resource:Mickey_Heath property:member_of_sports_team ?b } } . ?b rdf:type ontology:sports_team }
[]
sports team
Q1563793 Q826751 Q3446304 Q1966948 Q203008 Q193643 Q194369 Q656242
SYSTEM
HK 36 Skalica, Cincinnati Reds, Montreal Royals, Rochester Red Wings, Los Angeles Kings, Pittsburgh Penguins, New York Islanders, HC Slavia Praha
Q1563793 Q826751 Q3446304 Q1966948 Q203008 Q193643 Q194369 Q656242
OR((Q394023,P54,c(Q12973014)), (Q6838656,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q394023
relation P54
action find
entity Q6838656
relation P54
type Q12973014
[ANSWERS] have Žigmund Pálffy or Mickey Heath as their member
{'OR': [['Q394023', 'P54', {'concept': 'Q12973014'}], ['Q6838656', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q394023 property:P54 ?b } UNION { resource:Q6838656 property:P54 ?b } } . ?b rdf:type ontology:Q12973014 }
HK 36 Skalica Cincinnati Reds Montreal Royals Rochester Red Wings Los Angeles Kings Pittsburgh Penguins New York Islanders HC Slavia Praha
HK 36 Skalica, Cincinnati Reds, Montreal Royals, Rochester Red Wings, Los Angeles Kings, Pittsburgh Penguins, New York Islanders and HC Slavia Praha have Žigmund Pálffy or Mickey Heath as their member
HK 36 Skalica Cincinnati Reds Montreal Royals Rochester Red Wings Los Angeles Kings Pittsburgh Penguins New York Islanders HC Slavia Praha
action filter_type
action union
action find
entity Žigmund Pálffy
relation member of sports team
action find
entity Mickey Heath
relation member of sports team
type sports team
{'OR': [['Žigmund Pálffy', 'member of sports team', {'concept': 'sports team'}], ['Mickey Heath', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Žigmund_Pálffy property:member_of_sports_team ?b } UNION { resource:Mickey_Heath property:member_of_sports_team ?b } } . ?b rdf:type ontology:sports_team }
[]
Clarification
Simple Question|Single Entity|Indirect
Q826751
P17
Q15617994
USER
Which administrative territory is that sports team situated in ?
(Q826751,P17,c(Q15617994))
action filter_type
action find
entity Q826751
relation P17
type Q15617994
['Q826751', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q826751 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Cincinnati Reds
action filter_type
action find
entity Cincinnati Reds
relation country
type designation for an administrative territorial entity
['Cincinnati Reds', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Cincinnati_Reds property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q826751
SYSTEM
Did you mean Cincinnati Reds ?
Q1563793 Q826751 Q3446304 Q1966948 Q203008 Q193643 Q194369 Q656242
(Q1563793,P17,c(Q15617994)) (Q826751,P17,c(Q15617994)) (Q3446304,P17,c(Q15617994)) (Q1966948,P17,c(Q15617994)) (Q203008,P17,c(Q15617994)) (Q193643,P17,c(Q15617994)) (Q194369,P17,c(Q15617994)) (Q656242,P17,c(Q15617994))
[ANSWER]
['Q1563793', 'P17', {'concept': 'Q15617994'}] ['Q826751', 'P17', {'concept': 'Q15617994'}] ['Q3446304', 'P17', {'concept': 'Q15617994'}] ['Q1966948', 'P17', {'concept': 'Q15617994'}] ['Q203008', 'P17', {'concept': 'Q15617994'}] ['Q193643', 'P17', {'concept': 'Q15617994'}] ['Q194369', 'P17', {'concept': 'Q15617994'}] ['Q656242', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q826751 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
HK 36 Skalica Cincinnati Reds Montreal Royals Rochester Red Wings Los Angeles Kings Pittsburgh Penguins New York Islanders HC Slavia Praha
Did you mean Cincinnati Reds ?
Cincinnati Reds
['HK 36 Skalica', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cincinnati Reds', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Montreal Royals', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Rochester Red Wings', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Los Angeles Kings', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Pittsburgh Penguins', 'country', {'concept': 'designation for an administrative territorial entity'}] ['New York Islanders', 'country', {'concept': 'designation for an administrative territorial entity'}] ['HC Slavia Praha', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Cincinnati_Reds property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q826751,P17,c(Q15617994))
['Q826751', 'P17', {'concept': 'Q15617994'}]
['Cincinnati Reds', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q826751,P17,c(Q15617994))
action filter_type
action find
entity Q826751
relation P17
type Q15617994
That sports team is situated in [ANSWER]
['Q826751', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q826751 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
That sports team is situated in United States of America
United States of America
action filter_type
action find
entity Cincinnati Reds
relation country
type designation for an administrative territorial entity
['Cincinnati Reds', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Cincinnati_Reds property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P463
Q56061
USER
Which administrative territory was Brazil a member of ?
(Q155,P463,c(Q56061))
action filter_type
action find
entity Q155
relation P463
type Q56061
['Q155', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q155 property:P463 ?t . ?t rdf:type ontology:Q56061 }
Brazil
action filter_type
action find
entity Brazil
relation member of
type administrative territorial entity
['Brazil', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Brazil property:member_of ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4264
SYSTEM
Mercosur
Q4264
(Q155,P463,c(Q56061))
action filter_type
action find
entity Q155
relation P463
type Q56061
Which administrative territory was Brazil a member of
['Q155', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q155 property:P463 ?t . ?t rdf:type ontology:Q56061 }
Mercosur
Which administrative territory was Brazil a member of
Mercosur
action filter_type
action find
entity Brazil
relation member of
type administrative territorial entity
['Brazil', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Brazil property:member_of ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826751
P159
Q515
USER
Where is the head office for Cincinnati Reds located ?
(Q826751,P159,c(Q515))
action filter_type
action find
entity Q826751
relation P159
type Q515
['Q826751', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q826751 property:P159 ?p }
Cincinnati Reds
action filter_type
action find
entity Cincinnati Reds
relation headquarters location
type city
['Cincinnati Reds', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:Cincinnati_Reds property:headquarters_location ?p }
[]
city
Q43196
SYSTEM
Cincinnati
Q43196
(Q826751,P159,c(Q515))
action filter_type
action find
entity Q826751
relation P159
type Q515
The head office for [ANSWER] Reds is located in [ANSWER]
['Q826751', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q515 . resource:Q826751 property:P159 ?p }
Cincinnati
The head office for Cincinnati Reds is located in Cincinnati
Cincinnati
action filter_type
action find
entity Cincinnati Reds
relation headquarters location
type city
['Cincinnati Reds', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:city . resource:Cincinnati_Reds property:headquarters_location ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6864857
Q515
USER
And also tell me about Mingyang Wind Power?
(Q6864857,P159,c(Q515))
action filter_type
action find
entity Q6864857
relation P159
type Q515
['Q6864857', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q6864857 property:P159 ?i . ?i rdf:type ontology:Q515 }
Mingyang Wind Power
action filter_type
action find
entity Mingyang Wind Power
relation headquarters location
type city
['Mingyang Wind Power', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Mingyang_Wind_Power property:headquarters_location ?i . ?i rdf:type ontology:city }
[]
city
Q59223
SYSTEM
Zhongshan
Q59223
(Q6864857,P159,c(Q515))
action filter_type
action find
entity Q6864857
relation P159
type Q515
[ANSWER]
['Q6864857', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { resource:Q6864857 property:P159 ?i . ?i rdf:type ontology:Q515 }
Zhongshan
Zhongshan
action filter_type
action find
entity Mingyang Wind Power
relation headquarters location
type city
['Mingyang Wind Power', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { resource:Mingyang_Wind_Power property:headquarters_location ?i . ?i rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q826751
P115
Q811430
USER
Which construction is the home venue of Cincinnati Reds ?
(Q826751,P115,c(Q811430))
action filter_type
action find
entity Q826751
relation P115
type Q811430
['Q826751', 'P115', {'concept': 'Q811430'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q811430 . resource:Q826751 property:P115 ?c }
Cincinnati Reds
action filter_type
action find
entity Cincinnati Reds
relation home venue
type construction
['Cincinnati Reds', 'home venue', {'concept': 'construction'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:construction . resource:Cincinnati_Reds property:home_venue ?c }
[]
construction
Q979975
SYSTEM
Great American Ball Park
Q979975
(Q826751,P115,c(Q811430))
action filter_type
action find
entity Q826751
relation P115
type Q811430
[ANSWER] is the home venue of Cincinnati Reds
['Q826751', 'P115', {'concept': 'Q811430'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q811430 . resource:Q826751 property:P115 ?c }
Great American Ball Park
Great American Ball Park is the home venue of Cincinnati Reds
Great American Ball Park
action filter_type
action find
entity Cincinnati Reds
relation home venue
type construction
['Cincinnati Reds', 'home venue', {'concept': 'construction'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:construction . resource:Cincinnati_Reds property:home_venue ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q214
P551
Q502895
USER
Which people have residence at Slovakia ?
(c(Q502895),P551,Q214)
action filter_type
action find_reverse
entity Q214
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q214']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P551 resource:Q214 }
Slovakia
action filter_type
action find_reverse
entity Slovakia
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Slovakia']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:residence resource:Slovakia }
[]
common name
Q14943164 Q16533765 Q18086750
SYSTEM
Alain Schneider, Bruno Duthoit, François-Olivier Seys
Q6758892 Q14943164 Q16533765 Q18086750
(c(Q502895),P551,Q214)
action filter_type
action find_reverse
entity Q214
relation P551
type Q502895
[ANSWERS] have residence at Slovakia
[{'concept': 'Q502895'}, 'P551', 'Q214']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P551 resource:Q214 }
Marek Semjan Alain Schneider Bruno Duthoit François-Olivier Seys
Alain Schneider, Bruno Duthoit and François-Olivier Seys have residence at Slovakia
Alain Schneider Bruno Duthoit François-Olivier Seys
action filter_type
action find_reverse
entity Slovakia
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Slovakia']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:residence resource:Slovakia }
[]