Simple Question (Direct)
Simple Question
Q7350854
P39
Q12737077
USER
Which occupation was a position for which Robert Ward was appointed ?
(Q7350854,P39,c(Q12737077))
action filter_type
action find
entity Q7350854
relation P39
type Q12737077
['Q7350854', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q7350854 property:P39 ?z }
Robert Ward
action filter_type
action find
entity Robert Ward
relation position held
type occupation
['Robert Ward', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Robert_Ward property:position_held ?z }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q7350854,P39,c(Q12737077))
action filter_type
action find
entity Q7350854
relation P39
type Q12737077
The [ANSWER] was a position for which Robert Ward was appointed
['Q7350854', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q7350854 property:P39 ?z }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position for which Robert Ward was appointed
Member of Parliament in the United Kingdom
action filter_type
action find
entity Robert Ward
relation position held
type occupation
['Robert Ward', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Robert_Ward property:position_held ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7350854
P40
Q502895
USER
Who has that one as an offspring ?
(c(Q502895),P40,Q16707842)
action filter_type
action find_reverse
entity Q7350854
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q16707842']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q7350854 . ?r rdf:type ontology:Q502895 }
Robert Ward
action filter_type
action find_reverse
entity Robert Ward
relation child
type common name
[{'concept': 'common name'}, 'child', 'Member of Parliament in the United Kingdom']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Robert_Ward . ?r rdf:type ontology:common_name }
[]
common name
Q8019995
SYSTEM
William Ward, 1st Earl of Dudley
Q8019995
(c(Q502895),P40,Q16707842)
action filter_type
action find_reverse
entity Q7350854
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q16707842']
SELECT DISTINCT ?r WHERE { ?r property:P40 resource:Q7350854 . ?r rdf:type ontology:Q502895 }
William Ward, 1st Earl of Dudley
William Ward, 1st Earl of Dudley has that one as an offspring
William Ward, 1st Earl of Dudley
action filter_type
action find_reverse
entity Robert Ward
relation child
type common name
[{'concept': 'common name'}, 'child', 'Member of Parliament in the United Kingdom']
SELECT DISTINCT ?r WHERE { ?r property:child resource:Robert_Ward . ?r rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P69
Q1244442 Q3914
USER
How many school buildings or schools were that person educated at ?
(Q8019995,P69,c(Q1244442)) (Q8019995,P69,c(Q3914)) (Q8019995,P69,c(Q1244442)) (Q8019995,P69,c(Q3914))
action count
action union
action filter_type
action find
entity Q8019995
relation P69
type Q1244442
action filter_type
action find
entity Q8019995
relation P69
type Q3914
['Q8019995', 'P69', {'concept': 'Q1244442'}] ['Q8019995', 'P69', {'concept': 'Q3914'}] ['Q8019995', 'P69', {'concept': 'Q1244442'}] ['Q8019995', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { VALUES ( ?j ) { ( ontology:Q1244442 ) ( ontology:Q3914 ) } . ?n rdf:type ?j }
action count
action union
action filter_type
action find
entity William Ward, 1st Earl of Dudley
relation educated at
type school building
action filter_type
action find
entity William Ward, 1st Earl of Dudley
relation educated at
type school
['William Ward, 1st Earl of Dudley', 'educated at', {'concept': 'school building'}] ['William Ward, 1st Earl of Dudley', 'educated at', {'concept': 'school'}] ['William Ward, 1st Earl of Dudley', 'educated at', {'concept': 'school building'}] ['William Ward, 1st Earl of Dudley', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { VALUES ( ?j ) { ( ontology:school_building ) ( ontology:school ) } . ?n rdf:type ?j }
[]
school building school
SYSTEM
2
Q192088 Q745967
(Q8019995,P69,c(Q1244442)) (Q8019995,P69,c(Q3914)) (Q8019995,P69,c(Q1244442)) (Q8019995,P69,c(Q3914))
action count
action union
action filter_type
action find
entity Q8019995
relation P69
type Q1244442
action filter_type
action find
entity Q8019995
relation P69
type Q3914
[ANSWER]
['Q8019995', 'P69', {'concept': 'Q1244442'}] ['Q8019995', 'P69', {'concept': 'Q3914'}] ['Q8019995', 'P69', {'concept': 'Q1244442'}] ['Q8019995', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { VALUES ( ?j ) { ( ontology:Q1244442 ) ( ontology:Q3914 ) } . ?n rdf:type ?j }
Eton College Christ Church
2
action count
action union
action filter_type
action find
entity William Ward, 1st Earl of Dudley
relation educated at
type school building
action filter_type
action find
entity William Ward, 1st Earl of Dudley
relation educated at
type school
['William Ward, 1st Earl of Dudley', 'educated at', {'concept': 'school building'}] ['William Ward, 1st Earl of Dudley', 'educated at', {'concept': 'school'}] ['William Ward, 1st Earl of Dudley', 'educated at', {'concept': 'school building'}] ['William Ward, 1st Earl of Dudley', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { VALUES ( ?j ) { ( ontology:school_building ) ( ontology:school ) } . ?n rdf:type ?j }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q537750
P1303
Q34379 Q502895
USER
Which musical instruments do greater number of people know to play than Djembe ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q537750
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Q537750 property:P1303 ?i . ?i rdf:type ontology:Q34379 } } . FILTER ( ?s > ?r ) }
Djembe
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Djembe
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Djembe property:instrument ?i . ?i rdf:type ontology:musical_instrument } } . FILTER ( ?s > ?r ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q537750
relation P1303
type Q34379
[ANSWERS] greater number of people know to play than Djembe
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Q537750 property:P1303 ?i . ?i rdf:type ontology:Q34379 } } . FILTER ( ?s > ?r ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
Piano, harpsichord and viola greater number of people know to play than Djembe
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Djembe
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?s ) WHERE { ?y property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Djembe property:instrument ?i . ?i rdf:type ontology:musical_instrument } } . FILTER ( ?s > ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q726306
P1303
Q34379 Q502895
USER
And also tell me about erhu?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q726306
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?x ) WHERE { ?p rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 . ?j property:P1303 ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q726306 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?x > ?i ) }
erhu
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity erhu
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?x ) WHERE { ?p rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name . ?j property:instrument ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:erhu property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?x > ?i ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q742180 Q1444 Q220971 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q726306
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?x ) WHERE { ?p rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 . ?j property:P1303 ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q726306 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?x > ?i ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla viola d'amore organ marimba drum kit electronic keyboard drum
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity erhu
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?x ) WHERE { ?p rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name . ?j property:instrument ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:erhu property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?x > ?i ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5994
P61
Q502895
USER
Who discovered or invented that musical instrument ?
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q5994 property:P61 ?f . ?f rdf:type ontology:Q502895 }
piano
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:piano property:discoverer_or_inventor ?f . ?f rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q81982
SYSTEM
Did you mean harpsichord ?
Q5994 Q81982 Q80284
(Q5994,P61,c(Q502895)) (Q81982,P61,c(Q502895)) (Q80284,P61,c(Q502895))
[ANSWER]
['Q5994', 'P61', {'concept': 'Q502895'}] ['Q81982', 'P61', {'concept': 'Q502895'}] ['Q80284', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q5994 property:P61 ?f . ?f rdf:type ontology:Q502895 }
piano harpsichord viola
Did you mean harpsichord ?
harpsichord
['piano', 'discoverer or inventor', {'concept': 'common name'}] ['harpsichord', 'discoverer or inventor', {'concept': 'common name'}] ['viola', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:piano property:discoverer_or_inventor ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant piano. Could you tell me the answer for that?
(Q5994,P61,c(Q502895))
Q5994
['Q5994', 'P61', {'concept': 'Q502895'}]
['piano', 'discoverer or inventor', {'concept': 'common name'}]
[]
Q301597
SYSTEM
Bartolomeo Cristofori
Q301597
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
[ANSWER] discovered or invented that musical instrument
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q5994 property:P61 ?f . ?f rdf:type ontology:Q502895 }
Bartolomeo Cristofori
Bartolomeo Cristofori discovered or invented that musical instrument
Bartolomeo Cristofori
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:piano property:discoverer_or_inventor ?f . ?f rdf:type ontology:common_name }
[]