Simple Question (Direct)
Simple Question
Q4215897
P1303
Q34379
USER
Which musical instrument can Michael Sarver perform with ?
(Q4215897,P1303,c(Q34379))
action filter_type
action find
entity Q4215897
relation P1303
type Q34379
['Q4215897', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q34379 . resource:Q4215897 property:P1303 ?z }
Michael Sarver
action filter_type
action find
entity Michael Sarver
relation instrument
type musical instrument
['Michael Sarver', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:musical_instrument . resource:Michael_Sarver property:instrument ?z }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q4215897,P1303,c(Q34379))
action filter_type
action find
entity Q4215897
relation P1303
type Q34379
Michael Sarver can perform on [ANSWER]
['Q4215897', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q34379 . resource:Q4215897 property:P1303 ?z }
piano
Michael Sarver can perform on piano
piano
action filter_type
action find
entity Michael Sarver
relation instrument
type musical instrument
['Michael Sarver', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:musical_instrument . resource:Michael_Sarver property:instrument ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4215897
P136
Q151885
USER
Which genre does Michael Sarver belong to ?
(Q4215897,P136,c(Q151885))
action filter_type
action find
entity Q4215897
relation P136
type Q151885
['Q4215897', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { resource:Q4215897 property:P136 ?b . ?b rdf:type ontology:Q151885 }
Michael Sarver
action filter_type
action find
entity Michael Sarver
relation genre
type concept
['Michael Sarver', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { resource:Michael_Sarver property:genre ?b . ?b rdf:type ontology:concept }
[]
concept
Q45981
SYSTEM
rhythm and blues
Q45981
(Q4215897,P136,c(Q151885))
action filter_type
action find
entity Q4215897
relation P136
type Q151885
Michael Sarver belongs to [ANSWER]
['Q4215897', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { resource:Q4215897 property:P136 ?b . ?b rdf:type ontology:Q151885 }
rhythm and blues
Michael Sarver belongs to rhythm and blues
rhythm and blues
action filter_type
action find
entity Michael Sarver
relation genre
type concept
['Michael Sarver', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { resource:Michael_Sarver property:genre ?b . ?b rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1321465
P106
Q12737077
USER
Which occupations have Eivind Aarset as his/her 's career ?
(Q1321465,P106,c(Q12737077))
action filter_type
action find
entity Q1321465
relation P106
type Q12737077
['Q1321465', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1321465 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Eivind Aarset
action filter_type
action find
entity Eivind Aarset
relation occupation
type occupation
['Eivind Aarset', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Eivind_Aarset property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q15981151 Q36834 Q6168364
SYSTEM
jazz musician, composer, jazz guitarist
Q15981151 Q36834 Q6168364
(Q1321465,P106,c(Q12737077))
action filter_type
action find
entity Q1321465
relation P106
type Q12737077
The [ANSWERS] have Eivind Aarset as his/her 's career
['Q1321465', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1321465 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
jazz musician composer jazz guitarist
The jazz musician, composer and jazz guitarist have Eivind Aarset as his/her 's career
jazz musician composer jazz guitarist
action filter_type
action find
entity Eivind Aarset
relation occupation
type occupation
['Eivind Aarset', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Eivind_Aarset property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6124619
Q12737077
USER
And how about Jake Copass?
(Q6124619,P106,c(Q12737077))
action filter_type
action find
entity Q6124619
relation P106
type Q12737077
['Q6124619', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q6124619 property:P106 ?q }
Jake Copass
action filter_type
action find
entity Jake Copass
relation occupation
type occupation
['Jake Copass', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Jake_Copass property:occupation ?q }
[]
occupation
Q49757
SYSTEM
poet
Q49757
(Q6124619,P106,c(Q12737077))
action filter_type
action find
entity Q6124619
relation P106
type Q12737077
[ANSWER]
['Q6124619', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q6124619 property:P106 ?q }
poet
poet
action filter_type
action find
entity Jake Copass
relation occupation
type occupation
['Jake Copass', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Jake_Copass property:occupation ?q }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1899 Q4215897
P19 P190
Q56061
USER
Which administrative territories are the birthplace of Michael Sarver or are twin cities of Kyiv ?
OR((Q4215897,P19,c(Q56061)), (Q1899,P190,c(Q56061)))
action filter_type
action union
action find
entity Q4215897
relation P19
action find
entity Q1899
relation P190
type Q56061
{'OR': [['Q4215897', 'P19', {'concept': 'Q56061'}], ['Q1899', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q4215897 property:P19 ?o } UNION { resource:Q1899 property:P190 ?o } } . ?o rdf:type ontology:Q56061 }
Kyiv Michael Sarver
action filter_type
action union
action find
entity Michael Sarver
relation place of birth
action find
entity Kyiv
relation sister city
type administrative territorial entity
{'OR': [['Michael Sarver', 'place of birth', {'concept': 'administrative territorial entity'}], ['Kyiv', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Michael_Sarver property:place_of_birth ?o } UNION { resource:Kyiv property:sister_city ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5168 Q1726 Q23436 Q1297 Q172 Q1780 Q2044 Q1770 Q216 Q40840
SYSTEM
Some of them are Makhachkala, Munich, Edinburgh, Chicago, Toronto, Bratislava, Florence, Tallinn, Vilnius, Tampere
Q1757 Q1754 Q994 Q727 Q9248 Q472 Q1770 Q1297 Q5168 Q40840 Q23436 Q1524 Q3711 Q1780 Q1781 Q1489 Q25331 Q1520 Q1741 Q206954 Q1726 Q21197 Q7880 Q216 Q172 Q270 Q8678 Q239 Q650810 Q956 Q2280 Q2044 Q3640
OR((Q4215897,P19,c(Q56061)), (Q1899,P190,c(Q56061)))
action filter_type
action union
action find
entity Q4215897
relation P19
action find
entity Q1899
relation P190
type Q56061
[ANSWERS] are the birthplace of Michael Sarver or are twin cities of Kyiv
{'OR': [['Q4215897', 'P19', {'concept': 'Q56061'}], ['Q1899', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q4215897 property:P19 ?o } UNION { resource:Q1899 property:P190 ?o } } . ?o rdf:type ontology:Q56061 }
Helsinki Stockholm Tbilisi Amsterdam Baku Sofia Tallinn Chicago Makhachkala Tampere Edinburgh Athens Belgrade Bratislava Budapest Mexico City Odense Astana Vienna Kastoria Munich Chișinău Toulouse Vilnius Toronto Warsaw Rio de Janeiro Brussels Sulphur Beijing Minsk Florence Ankara
Makhachkala, Munich, Edinburgh, Chicago, Toronto, Bratislava, Florence, Tallinn, Vilnius and Tampere are the birthplace of Michael Sarver or are twin cities of Kyiv
Makhachkala Munich Edinburgh Chicago Toronto Bratislava Florence Tallinn Vilnius Tampere
action filter_type
action union
action find
entity Michael Sarver
relation place of birth
action find
entity Kyiv
relation sister city
type administrative territorial entity
{'OR': [['Michael Sarver', 'place of birth', {'concept': 'administrative territorial entity'}], ['Kyiv', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Michael_Sarver property:place_of_birth ?o } UNION { resource:Kyiv property:sister_city ?o } } . ?o rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1726
P17
Q7275 Q183366
USER
How many states or territories are Munich present in ?
(Q1726,P17,c(Q7275)) (Q1726,P17,c(Q183366))
action count
action union
action filter_type
action find
entity Q1726
relation P17
type Q7275
action filter_type
action find
entity Q1726
relation P17
type Q183366
['Q1726', 'P17', {'concept': 'Q7275'}] ['Q1726', 'P17', {'concept': 'Q183366'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u rdf:type ?c . VALUES ( ?c ) { ( ontology:Q7275 ) ( ontology:Q183366 ) } }
Munich
action count
action union
action filter_type
action find
entity Munich
relation country
type state
action filter_type
action find
entity Munich
relation country
type territory
['Munich', 'country', {'concept': 'state'}] ['Munich', 'country', {'concept': 'territory'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u rdf:type ?c . VALUES ( ?c ) { ( ontology:state ) ( ontology:territory ) } }
[]
state territory
SYSTEM
5
Q7318 Q154195 Q2415901 Q713750 Q41304
(Q1726,P17,c(Q7275)) (Q1726,P17,c(Q183366))
action count
action union
action filter_type
action find
entity Q1726
relation P17
type Q7275
action filter_type
action find
entity Q1726
relation P17
type Q183366
[ANSWER]
['Q1726', 'P17', {'concept': 'Q7275'}] ['Q1726', 'P17', {'concept': 'Q183366'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u rdf:type ?c . VALUES ( ?c ) { ( ontology:Q7275 ) ( ontology:Q183366 ) } }
Nazi Germany Kingdom of Bavaria Allied-occupied Germany West Germany Weimar Republic
5
action count
action union
action filter_type
action find
entity Munich
relation country
type state
action filter_type
action find
entity Munich
relation country
type territory
['Munich', 'country', {'concept': 'state'}] ['Munich', 'country', {'concept': 'territory'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { ?u rdf:type ?c . VALUES ( ?c ) { ( ontology:state ) ( ontology:territory ) } }
[]