Simple Question (Direct)
Simple Question
Q1983825
P21
Q290
USER
Which sex does Johannes van Keulen possess ?
(Q1983825,P21,c(Q290))
action filter_type
action find
entity Q1983825
relation P21
type Q290
['Q1983825', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q1983825 property:P21 ?z . ?z rdf:type ontology:Q290 }
Johannes van Keulen
action filter_type
action find
entity Johannes van Keulen
relation gender
type sex
['Johannes van Keulen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Johannes_van_Keulen property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1983825,P21,c(Q290))
action filter_type
action find
entity Q1983825
relation P21
type Q290
Johannes Keulen vans [ANSWER]
['Q1983825', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q1983825 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Johannes Keulen vans male
male
action filter_type
action find
entity Johannes van Keulen
relation gender
type sex
['Johannes van Keulen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Johannes_van_Keulen property:gender ?z . ?z rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can approximately 1027 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1027
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?q ) WHERE { ?h rdf:type ontology:Q502895 . ?x rdf:type ontology:Q34379 . ?h property:P1303 ?x } GROUP BY ?x } . FILTER ( ?q = 1027 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1027
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?q ) WHERE { ?h rdf:type ontology:common_name . ?x rdf:type ontology:musical_instrument . ?h property:instrument ?x } GROUP BY ?x } . FILTER ( ?q = 1027 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1027
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?q ) WHERE { ?h rdf:type ontology:Q502895 . ?x rdf:type ontology:Q34379 . ?h property:P1303 ?x } GROUP BY ?x } . FILTER ( ?q = 1027 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Which musical instruments can approximately 1027 people perform with
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1027
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?q ) WHERE { ?h rdf:type ontology:common_name . ?x rdf:type ontology:musical_instrument . ?h property:instrument ?x } GROUP BY ?x } . FILTER ( ?q = 1027 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1983825
P20
Q56061
USER
Where did the expiration of Johannes van Keulen occur ?
(Q1983825,P20,c(Q56061))
action filter_type
action find
entity Q1983825
relation P20
type Q56061
['Q1983825', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1983825 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Johannes van Keulen
action filter_type
action find
entity Johannes van Keulen
relation place of death
type administrative territorial entity
['Johannes van Keulen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Johannes_van_Keulen property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q727
SYSTEM
Amsterdam
Q727
(Q1983825,P20,c(Q56061))
action filter_type
action find
entity Q1983825
relation P20
type Q56061
The expiration of Johannes van Keulen occurred in [ANSWER]
['Q1983825', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1983825 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Amsterdam
The expiration of Johannes van Keulen occurred in Amsterdam
Amsterdam
action filter_type
action find
entity Johannes van Keulen
relation place of death
type administrative territorial entity
['Johannes van Keulen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Johannes_van_Keulen property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5129854
Q56061
USER
And also tell me about Clay Clement?
(Q5129854,P20,c(Q56061))
action filter_type
action find
entity Q5129854
relation P20
type Q56061
['Q5129854', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q5129854 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Clay Clement
action filter_type
action find
entity Clay Clement
relation place of death
type administrative territorial entity
['Clay Clement', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Clay_Clement property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1378026
SYSTEM
Watertown
Q1378026
(Q5129854,P20,c(Q56061))
action filter_type
action find
entity Q5129854
relation P20
type Q56061
[ANSWER]
['Q5129854', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q5129854 property:P20 ?j . ?j rdf:type ontology:Q56061 }
Watertown
Watertown
action filter_type
action find
entity Clay Clement
relation place of death
type administrative territorial entity
['Clay Clement', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Clay_Clement property:place_of_death ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]