Simple Question (Direct)
Simple Question
Q3820055
P86
Q502895
USER
Which person composed One Man Up ?
(Q3820055,P86,c(Q502895))
action filter_type
action find
entity Q3820055
relation P86
type Q502895
['Q3820055', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3820055 property:P86 ?h . ?h rdf:type ontology:Q502895 }
One Man Up
action filter_type
action find
entity One Man Up
relation composer
type common name
['One Man Up', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:One_Man_Up property:composer ?h . ?h rdf:type ontology:common_name }
[]
common name
Q2055686
SYSTEM
Pasquale Catalano
Q2055686
(Q3820055,P86,c(Q502895))
action filter_type
action find
entity Q3820055
relation P86
type Q502895
[ANSWER] composed One Man Up
['Q3820055', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3820055 property:P86 ?h . ?h rdf:type ontology:Q502895 }
Pasquale Catalano
Pasquale Catalano composed One Man Up
Pasquale Catalano
action filter_type
action find
entity One Man Up
relation composer
type common name
['One Man Up', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:One_Man_Up property:composer ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2055686
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q2055686,P19,c(Q56061))
action filter_type
action find
entity Q2055686
relation P19
type Q56061
['Q2055686', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q2055686 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Pasquale Catalano
action filter_type
action find
entity Pasquale Catalano
relation place of birth
type administrative territorial entity
['Pasquale Catalano', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Pasquale_Catalano property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2634
SYSTEM
Naples
Q2634
(Q2055686,P19,c(Q56061))
action filter_type
action find
entity Q2055686
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q2055686', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q2055686 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Naples
Naples is the place of birth of that person
Naples
action filter_type
action find
entity Pasquale Catalano
relation place of birth
type administrative territorial entity
['Pasquale Catalano', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Pasquale_Catalano property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2055686
P106
Q12737077
USER
Which occupation is the profession of Pasquale Catalano ?
(Q2055686,P106,c(Q12737077))
action filter_type
action find
entity Q2055686
relation P106
type Q12737077
['Q2055686', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q2055686 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Pasquale Catalano
action filter_type
action find
entity Pasquale Catalano
relation occupation
type occupation
['Pasquale Catalano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Pasquale_Catalano property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q2055686,P106,c(Q12737077))
action filter_type
action find
entity Q2055686
relation P106
type Q12737077
The [ANSWER] is the profession of Pasquale Catalano
['Q2055686', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q2055686 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
composer
The composer is the profession of Pasquale Catalano
composer
action filter_type
action find
entity Pasquale Catalano
relation occupation
type occupation
['Pasquale Catalano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Pasquale_Catalano property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7530113
Q12737077
USER
And also tell me about Siren Painter?
(Q7530113,P106,c(Q12737077))
action filter_type
action find
entity Q7530113
relation P106
type Q12737077
['Q7530113', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q7530113 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Siren Painter
action filter_type
action find
entity Siren Painter
relation occupation
type occupation
['Siren Painter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Siren_Painter property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q1028181
SYSTEM
painter
Q1028181
(Q7530113,P106,c(Q12737077))
action filter_type
action find
entity Q7530113
relation P106
type Q12737077
[ANSWER]
['Q7530113', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q7530113 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
painter
painter
action filter_type
action find
entity Siren Painter
relation occupation
type occupation
['Siren Painter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Siren_Painter property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1137790 Q36834
P161 P417
Q502895
USER
Which people are the patron saint of composer or were casted in Son in Law ?
OR((Q36834,P417,c(Q502895)), (Q1137790,P161,c(Q502895)))
action filter_type
action union
action find
entity Q36834
relation P417
action find
entity Q1137790
relation P161
type Q502895
{'OR': [['Q36834', 'P417', {'concept': 'Q502895'}], ['Q1137790', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q36834 property:P417 ?u } UNION { resource:Q1137790 property:P161 ?u } } . ?u rdf:type ontology:Q502895 }
Son in Law composer
action filter_type
action union
action find
entity composer
relation patron saint
action find
entity Son in Law
relation cast member
type common name
{'OR': [['composer', 'patron saint', {'concept': 'common name'}], ['Son in Law', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { { resource:composer property:patron_saint ?u } UNION { resource:Son_in_Law property:cast_member ?u } } . ?u rdf:type ontology:common_name }
[]
common name
Q1189009 Q281964 Q2805350 Q1384822 Q193555 Q740939 Q5120585 Q725017 Q230045 Q80513
SYSTEM
Some of them are Dennis Burkley, Adam Goldberg, Dan Gauthier, Pauly Shore, Brendan Fraser, Lane Smith, Cindy Pickett, Patrick Renna, Tiffani Thiessen, Saint Cecilia
Q228871 Q281964 Q2805350 Q1189009 Q725017 Q5120585 Q740939 Q1384822 Q80513 Q193555 Q230045
OR((Q36834,P417,c(Q502895)), (Q1137790,P161,c(Q502895)))
action filter_type
action union
action find
entity Q36834
relation P417
action find
entity Q1137790
relation P161
type Q502895
[ANSWERS] are the patron saint of composer or were casted in Son in Law
{'OR': [['Q36834', 'P417', {'concept': 'Q502895'}], ['Q1137790', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q36834 property:P417 ?u } UNION { resource:Q1137790 property:P161 ?u } } . ?u rdf:type ontology:Q502895 }
Carla Gugino Adam Goldberg Dan Gauthier Dennis Burkley Patrick Renna Cindy Pickett Lane Smith Pauly Shore Saint Cecilia Brendan Fraser Tiffani Thiessen
Dennis Burkley, Adam Goldberg, Dan Gauthier, Pauly Shore, Brendan Fraser, Lane Smith, Cindy Pickett, Patrick Renna, Tiffani Thiessen and Saint Cecilia are the patron saint of composer or were casted in Son in Law
Dennis Burkley Adam Goldberg Dan Gauthier Pauly Shore Brendan Fraser Lane Smith Cindy Pickett Patrick Renna Tiffani Thiessen Saint Cecilia
action filter_type
action union
action find
entity composer
relation patron saint
action find
entity Son in Law
relation cast member
type common name
{'OR': [['composer', 'patron saint', {'concept': 'common name'}], ['Son in Law', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { { resource:composer property:patron_saint ?u } UNION { resource:Son_in_Law property:cast_member ?u } } . ?u rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1759986
P1303
Q34379 Q502895
USER
How many musical instruments are played by approximately the same number of people as Wurlitzer electric piano ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1759986
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { resource:Q1759986 property:P1303 ?n . ?n rdf:type ontology:Q34379 } } . FILTER ( ?x = ?d ) }
Wurlitzer electric piano
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Wurlitzer electric piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { resource:Wurlitzer_electric_piano property:instrument ?n . ?n rdf:type ontology:musical_instrument } } . FILTER ( ?x = ?d ) }
[]
musical instrument common name
SYSTEM
60
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 count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1759986
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { resource:Q1759986 property:P1303 ?n . ?n rdf:type ontology:Q34379 } } . FILTER ( ?x = ?d ) }
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
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Wurlitzer electric piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?x ) WHERE { ?h property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { resource:Wurlitzer_electric_piano property:instrument ?n . ?n rdf:type ontology:musical_instrument } } . FILTER ( ?x = ?d ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1384822
P40
Q502895
USER
Whose child is Pauly Shore ?
(c(Q502895),P40,Q1384822)
action filter_type
action find_reverse
entity Q1384822
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1384822']
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q1384822 . ?i rdf:type ontology:Q502895 }
Pauly Shore
action filter_type
action find_reverse
entity Pauly Shore
relation child
type common name
[{'concept': 'common name'}, 'child', 'Pauly Shore']
SELECT DISTINCT ?i WHERE { ?i property:child resource:Pauly_Shore . ?i rdf:type ontology:common_name }
[]
common name
Q6883628
SYSTEM
Mitzi Shore
Q6883628
(c(Q502895),P40,Q1384822)
action filter_type
action find_reverse
entity Q1384822
relation P40
type Q502895
[ANSWER] is Pauly Shore
[{'concept': 'Q502895'}, 'P40', 'Q1384822']
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q1384822 . ?i rdf:type ontology:Q502895 }
Mitzi Shore
Mitzi Shore is Pauly Shore
Mitzi Shore
action filter_type
action find_reverse
entity Pauly Shore
relation child
type common name
[{'concept': 'common name'}, 'child', 'Pauly Shore']
SELECT DISTINCT ?i WHERE { ?i property:child resource:Pauly_Shore . ?i rdf:type ontology:common_name }
[]