Simple Question (Direct)
Simple Question
Q142546
P735
Q82799
USER
What is forename of Tippi Hedren ?
(Q142546,P735,c(Q82799))
action filter_type
action find
entity Q142546
relation P735
type Q82799
['Q142546', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q142546 property:P735 ?d . ?d rdf:type ontology:Q82799 }
Tippi Hedren
action filter_type
action find
entity Tippi Hedren
relation given name
type name
['Tippi Hedren', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Tippi_Hedren property:given_name ?d . ?d rdf:type ontology:name }
[]
name
Q23908693
SYSTEM
Tippi
Q23908693
(Q142546,P735,c(Q82799))
action filter_type
action find
entity Q142546
relation P735
type Q82799
Forename of [ANSWER] Hedren is of [ANSWER]
['Q142546', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q142546 property:P735 ?d . ?d rdf:type ontology:Q82799 }
Tippi
Forename of Tippi Hedren is of Tippi
Tippi
action filter_type
action find
entity Tippi Hedren
relation given name
type name
['Tippi Hedren', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Tippi_Hedren property:given_name ?d . ?d rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142546
P40
Q502895
USER
Which person is a successor of that one ?
(Q23908693,P40,c(Q502895))
action filter_type
action find
entity Q142546
relation P40
type Q502895
['Q23908693', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q142546 property:P40 ?j . ?j rdf:type ontology:Q502895 }
Tippi Hedren
action filter_type
action find
entity Tippi Hedren
relation child
type common name
['Tippi', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Tippi_Hedren property:child ?j . ?j rdf:type ontology:common_name }
[]
common name
Q176455
SYSTEM
Melanie Griffith
Q176455
(Q23908693,P40,c(Q502895))
action filter_type
action find
entity Q142546
relation P40
type Q502895
[ANSWER] is a successor of that one
['Q23908693', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q142546 property:P40 ?j . ?j rdf:type ontology:Q502895 }
Melanie Griffith
Melanie Griffith is a successor of that one
Melanie Griffith
action filter_type
action find
entity Tippi Hedren
relation child
type common name
['Tippi', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Tippi_Hedren property:child ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142546
P21
Q290
USER
Which sex does Tippi Hedren belong to ?
(Q142546,P21,c(Q290))
action filter_type
action find
entity Q142546
relation P21
type Q290
['Q142546', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q142546 property:P21 ?e . ?e rdf:type ontology:Q290 }
Tippi Hedren
action filter_type
action find
entity Tippi Hedren
relation gender
type sex
['Tippi Hedren', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Tippi_Hedren property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q142546,P21,c(Q290))
action filter_type
action find
entity Q142546
relation P21
type Q290
Tippi Hedren belongs to [ANSWER]
['Q142546', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q142546 property:P21 ?e . ?e rdf:type ontology:Q290 }
female
Tippi Hedren belongs to female
female
action filter_type
action find
entity Tippi Hedren
relation gender
type sex
['Tippi Hedren', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Tippi_Hedren property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11702748
Q290
USER
And what about Grzegorz Madejski?
(Q11702748,P21,c(Q290))
action filter_type
action find
entity Q11702748
relation P21
type Q290
['Q11702748', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q11702748 property:P21 ?c . ?c rdf:type ontology:Q290 }
Grzegorz Madejski
action filter_type
action find
entity Grzegorz Madejski
relation gender
type sex
['Grzegorz Madejski', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Grzegorz_Madejski property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11702748,P21,c(Q290))
action filter_type
action find
entity Q11702748
relation P21
type Q290
[ANSWER]
['Q11702748', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q11702748 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Grzegorz Madejski
relation gender
type sex
['Grzegorz Madejski', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Grzegorz_Madejski property:gender ?c . ?c rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q6969067
P21
Q502895
USER
Does Nathan Fyfe have that sex as the sex ?
(Q6969067,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q6969067
relation P21
['Q6969067', 'P21', 'Q6581097']
ASK WHERE { resource:Q6969067 property:P21 resource:Q6581097 }
male Nathan Fyfe
action is_in
entity male
action find
entity Nathan Fyfe
relation gender
['Nathan Fyfe', 'gender', 'male']
ASK WHERE { resource:Nathan_Fyfe property:gender resource:male }
[]
common name
SYSTEM
YES
(Q6969067,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q6969067
relation P21
[ANSWER]
['Q6969067', 'P21', 'Q6581097']
ASK WHERE { resource:Q6969067 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Nathan Fyfe
relation gender
['Nathan Fyfe', 'gender', 'male']
ASK WHERE { resource:Nathan_Fyfe property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8019265 Q176455
P26
Q502895
USER
Which people are the life partner of Melanie Griffith or William Thaw, Sr. ?
OR((Q176455,P26,c(Q502895)), (Q8019265,P26,c(Q502895)))
action filter_type
action union
action find
entity Q176455
relation P26
action find
entity Q8019265
relation P26
type Q502895
{'OR': [['Q176455', 'P26', {'concept': 'Q502895'}], ['Q8019265', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?d ) { ( resource:Q176455 ) ( resource:Q8019265 ) } . ?d property:P26 ?w } . ?w rdf:type ontology:Q502895 }
William Thaw, Sr. Melanie Griffith
action filter_type
action union
action find
entity Melanie Griffith
relation spouse
action find
entity William Thaw, Sr.
relation spouse
type common name
{'OR': [['Melanie Griffith', 'spouse', {'concept': 'common name'}], ['William Thaw, Sr.', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?d ) { ( resource:Melanie_Griffith ) ( resource:William_Thaw,_Sr. ) } . ?d property:spouse ?w } . ?w rdf:type ontology:common_name }
[]
common name
Q6780716 Q41548 Q705477 Q309788
SYSTEM
Mary Sibbet Copley, Antonio Banderas, Steven Bauer, Don Johnson
Q6780716 Q41548 Q705477 Q309788
OR((Q176455,P26,c(Q502895)), (Q8019265,P26,c(Q502895)))
action filter_type
action union
action find
entity Q176455
relation P26
action find
entity Q8019265
relation P26
type Q502895
[ANSWERS] are the life partner of Melanie Griffith or William Thaw, Sr.
{'OR': [['Q176455', 'P26', {'concept': 'Q502895'}], ['Q8019265', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?d ) { ( resource:Q176455 ) ( resource:Q8019265 ) } . ?d property:P26 ?w } . ?w rdf:type ontology:Q502895 }
Mary Sibbet Copley Antonio Banderas Steven Bauer Don Johnson
Mary Sibbet Copley, Antonio Banderas, Steven Bauer and Don Johnson are the life partner of Melanie Griffith or William Thaw, Sr.
Mary Sibbet Copley Antonio Banderas Steven Bauer Don Johnson
action filter_type
action union
action find
entity Melanie Griffith
relation spouse
action find
entity William Thaw, Sr.
relation spouse
type common name
{'OR': [['Melanie Griffith', 'spouse', {'concept': 'common name'}], ['William Thaw, Sr.', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?d ) { ( resource:Melanie_Griffith ) ( resource:William_Thaw,_Sr. ) } . ?d property:spouse ?w } . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atmost 56 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 56
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?t <= 56 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 56
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?t <= 56 ) }
[]
musical instrument common name
SYSTEM
54
Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q182718 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 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 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 56
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?t <= 56 ) }
lyre acoustic bass guitar Body percussion davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar Nyckelharpa Ondioline Jinghu player piano electronic musical instrument spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo 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 drum Kayamb Paraguayan harp
54
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 56
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?t ) WHERE { ?z property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?t <= 56 ) }
[]