Simple Question (Direct)
Simple Question
Q550183
P9
Q502895
USER
Which person is the sister of James, Viscount Severn ?
(Q550183,P9,c(Q502895))
action filter_type
action find
entity Q550183
relation P9
type Q502895
['Q550183', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q550183 property:P9 ?m . ?m rdf:type ontology:Q502895 }
James, Viscount Severn
action filter_type
action find
entity James, Viscount Severn
relation sister
type common name
['James, Viscount Severn', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:James,_Viscount_Severn property:sister ?m . ?m rdf:type ontology:common_name }
[]
common name
Q680304
SYSTEM
Lady Louise Windsor
Q680304
(Q550183,P9,c(Q502895))
action filter_type
action find
entity Q550183
relation P9
type Q502895
The [ANSWER] is the sister of James, Viscount Severn
['Q550183', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q550183 property:P9 ?m . ?m rdf:type ontology:Q502895 }
Lady Louise Windsor
The Lady Louise Windsor is the sister of James, Viscount Severn
Lady Louise Windsor
action filter_type
action find
entity James, Viscount Severn
relation sister
type common name
['James, Viscount Severn', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:James,_Viscount_Severn property:sister ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q550183
P25
Q502895
USER
Who was the mother of James, Viscount Severn ?
(Q550183,P25,c(Q502895))
action filter_type
action find
entity Q550183
relation P25
type Q502895
['Q550183', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q550183 property:P25 ?l . ?l rdf:type ontology:Q502895 }
James, Viscount Severn
action filter_type
action find
entity James, Viscount Severn
relation mother
type common name
['James, Viscount Severn', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:James,_Viscount_Severn property:mother ?l . ?l rdf:type ontology:common_name }
[]
common name
Q155203
SYSTEM
Sophie, Countess of Wessex
Q155203
(Q550183,P25,c(Q502895))
action filter_type
action find
entity Q550183
relation P25
type Q502895
The mother of James , Viscount Severn was Princess [ANSWER]
['Q550183', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q550183 property:P25 ?l . ?l rdf:type ontology:Q502895 }
Sophie, Countess of Wessex
The mother of James , Viscount Severn was Princess Sophie, Countess of Wessex
Sophie, Countess of Wessex
action filter_type
action find
entity James, Viscount Severn
relation mother
type common name
['James, Viscount Severn', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:James,_Viscount_Severn property:mother ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3889324
Q502895
USER
And also tell me about Bahiyyih Khánum?
(Q3889324,P25,c(Q502895))
action filter_type
action find
entity Q3889324
relation P25
type Q502895
['Q3889324', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3889324 property:P25 ?q }
Bahiyyih Khánum
action filter_type
action find
entity Bahiyyih Khánum
relation mother
type common name
['Bahiyyih Khánum', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Bahiyyih_Khánum property:mother ?q }
[]
common name
Q2348926
SYSTEM
Ásíyih Khánum
Q2348926
(Q3889324,P25,c(Q502895))
action filter_type
action find
entity Q3889324
relation P25
type Q502895
[ANSWER]
['Q3889324', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3889324 property:P25 ?q }
Ásíyih Khánum
Ásíyih Khánum
action filter_type
action find
entity Bahiyyih Khánum
relation mother
type common name
['Bahiyyih Khánum', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Bahiyyih_Khánum property:mother ?q }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2348926 Q3379817
P26
Q502895
USER
Is Philippe Fabia the spouse of Ásíyih Khánum ?
(Q2348926,P26,Q3379817)
action is_in
entity Q3379817
action find
entity Q2348926
relation P26
['Q2348926', 'P26', 'Q3379817']
ASK WHERE { resource:Q2348926 property:P26 resource:Q3379817 }
Ásíyih Khánum Philippe Fabia
action is_in
entity Philippe Fabia
action find
entity Ásíyih Khánum
relation spouse
['Ásíyih Khánum', 'spouse', 'Philippe Fabia']
ASK WHERE { resource:Ásíyih_Khánum property:spouse resource:Philippe_Fabia }
[]
common name
SYSTEM
NO
(Q2348926,P26,Q3379817)
action is_in
entity Q3379817
action find
entity Q2348926
relation P26
[ANSWER]
['Q2348926', 'P26', 'Q3379817']
ASK WHERE { resource:Q2348926 property:P26 resource:Q3379817 }
No
action is_in
entity Philippe Fabia
action find
entity Ásíyih Khánum
relation spouse
['Ásíyih Khánum', 'spouse', 'Philippe Fabia']
ASK WHERE { resource:Ásíyih_Khánum property:spouse resource:Philippe_Fabia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q550183 Q636105 Q22638
P27
Q15617994
USER
Is James, Viscount Severn a citizen of Turnow-Preilack and Tornaco, Piedmont ?
(Q550183,P27,Q636105) (Q550183,P27,Q22638)
action is_in
entity Q550183
action intersection
action find_reverse
entity Q636105
relation P27
action find_reverse
entity Q22638
relation P27
['Q550183', 'P27', 'Q636105'] ['Q550183', 'P27', 'Q22638']
ASK WHERE { resource:Q550183 property:P27 resource:Q636105 . resource:Q550183 property:P27 resource:Q22638 }
James, Viscount Severn Turnow-Preilack Tornaco, Piedmont
action is_in
entity James, Viscount Severn
action intersection
action find_reverse
entity Turnow-Preilack
relation country of citizenship
action find_reverse
entity Tornaco, Piedmont
relation country of citizenship
['James, Viscount Severn', 'country of citizenship', 'Turnow-Preilack'] ['James, Viscount Severn', 'country of citizenship', 'Tornaco, Piedmont']
ASK WHERE { resource:James,_Viscount_Severn property:country_of_citizenship resource:Turnow-Preilack . resource:James,_Viscount_Severn property:country_of_citizenship resource:Tornaco,_Piedmont }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q550183,P27,Q636105) (Q550183,P27,Q22638)
action is_in
entity Q550183
action intersection
action find_reverse
entity Q636105
relation P27
action find_reverse
entity Q22638
relation P27
[ANSWER]
['Q550183', 'P27', 'Q636105'] ['Q550183', 'P27', 'Q22638']
ASK WHERE { resource:Q550183 property:P27 resource:Q636105 . resource:Q550183 property:P27 resource:Q22638 }
No
action is_in
entity James, Viscount Severn
action intersection
action find_reverse
entity Turnow-Preilack
relation country of citizenship
action find_reverse
entity Tornaco, Piedmont
relation country of citizenship
['James, Viscount Severn', 'country of citizenship', 'Turnow-Preilack'] ['James, Viscount Severn', 'country of citizenship', 'Tornaco, Piedmont']
ASK WHERE { resource:James,_Viscount_Severn property:country_of_citizenship resource:Turnow-Preilack . resource:James,_Viscount_Severn property:country_of_citizenship resource:Tornaco,_Piedmont }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q8338
P1303
Q34379 Q502895
USER
Which musical instruments can approximately the same number of people perform with as trumpet ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q8338
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s rdf:type ontology:Q34379 . resource:Q8338 property:P1303 ?s } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P1303 ?q . ?e rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } }
trumpet
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity trumpet
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s rdf:type ontology:musical_instrument . resource:trumpet property:instrument ?s } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:instrument ?q . ?e rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } }
[]
musical instrument common name
Q80284 Q46185 Q80019
SYSTEM
viola, bass guitar, double bass
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q8338
relation P1303
type Q34379
[ANSWERS] can approximately the same number of people perform with as trumpet
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s rdf:type ontology:Q34379 . resource:Q8338 property:P1303 ?s } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P1303 ?q . ?e rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
Viola, bass guitar and double bass can approximately the same number of people perform with as trumpet
viola bass guitar double bass
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity trumpet
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s rdf:type ontology:musical_instrument . resource:trumpet property:instrument ?s } } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:instrument ?q . ?e rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1879664
P1303
Q34379 Q502895
USER
And what about spoon?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1879664
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?n ) WHERE { ?l rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 . ?r property:P1303 ?l } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Q1879664 property:P1303 ?x . ?x rdf:type ontology:Q34379 } } . FILTER ( ?n = ?k ) }
spoon
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity spoon
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?n ) WHERE { ?l rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name . ?r property:instrument ?l } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:spoon property:instrument ?x . ?x rdf:type ontology:musical_instrument } } . FILTER ( ?n = ?k ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 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
action count
action filter_type
action find
entity Q1879664
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?n ) WHERE { ?l rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 . ?r property:P1303 ?l } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:Q1879664 property:P1303 ?x . ?x rdf:type ontology:Q34379 } } . FILTER ( ?n = ?k ) }
viola 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 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 morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity spoon
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?r ) AS ?n ) WHERE { ?l rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name . ?r property:instrument ?l } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { resource:spoon property:instrument ?x . ?x rdf:type ontology:musical_instrument } } . FILTER ( ?n = ?k ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1178361
P495
Q15617994
USER
Where did that musical instrument originate ?
(Q1178361,P495,c(Q15617994))
action filter_type
action find
entity Q1178361
relation P495
type Q15617994
['Q1178361', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1178361 property:P495 ?n . ?n rdf:type ontology:Q15617994 }
davul
action filter_type
action find
entity davul
relation country of origin
type designation for an administrative territorial entity
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:davul property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1178361
SYSTEM
Did you mean davul ?
Q1178361 Q81982 Q1759986
(Q1178361,P495,c(Q15617994)) (Q81982,P495,c(Q15617994)) (Q1759986,P495,c(Q15617994))
[ANSWER]
['Q1178361', 'P495', {'concept': 'Q15617994'}] ['Q81982', 'P495', {'concept': 'Q15617994'}] ['Q1759986', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1178361 property:P495 ?n . ?n rdf:type ontology:Q15617994 }
davul harpsichord Wurlitzer electric piano
Did you mean davul ?
davul
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['harpsichord', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Wurlitzer electric piano', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:davul property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1178361,P495,c(Q15617994))
['Q1178361', 'P495', {'concept': 'Q15617994'}]
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q43
SYSTEM
Turkey
Q43
(Q1178361,P495,c(Q15617994))
action filter_type
action find
entity Q1178361
relation P495
type Q15617994
That musical instrument originated from [ANSWER]
['Q1178361', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1178361 property:P495 ?n . ?n rdf:type ontology:Q15617994 }
Turkey
That musical instrument originated from Turkey
Turkey
action filter_type
action find
entity davul
relation country of origin
type designation for an administrative territorial entity
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:davul property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]