Simple Question (Direct)
Simple Question
Q20010863
P915
Q82794
USER
Which location was SunTrap filmed ?
(Q20010863,P915,c(Q82794))
action filter_type
action find
entity Q20010863
relation P915
type Q82794
['Q20010863', 'P915', {'concept': 'Q82794'}]
SELECT DISTINCT ?b WHERE { resource:Q20010863 property:P915 ?b . ?b rdf:type ontology:Q82794 }
SunTrap
action filter_type
action find
entity SunTrap
relation filming location
type geographic region
['SunTrap', 'filming location', {'concept': 'geographic region'}]
SELECT DISTINCT ?b WHERE { resource:SunTrap property:filming_location ?b . ?b rdf:type ontology:geographic_region }
[]
geographic region
Q178925
SYSTEM
Gran Canaria
Q178925
(Q20010863,P915,c(Q82794))
action filter_type
action find
entity Q20010863
relation P915
type Q82794
SunTrap was filmed in [ANSWER]
['Q20010863', 'P915', {'concept': 'Q82794'}]
SELECT DISTINCT ?b WHERE { resource:Q20010863 property:P915 ?b . ?b rdf:type ontology:Q82794 }
Gran Canaria
SunTrap was filmed in Gran Canaria
Gran Canaria
action filter_type
action find
entity SunTrap
relation filming location
type geographic region
['SunTrap', 'filming location', {'concept': 'geographic region'}]
SELECT DISTINCT ?b WHERE { resource:SunTrap property:filming_location ?b . ?b rdf:type ontology:geographic_region }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20010863
P136
Q223393
USER
What can be considered as category for SunTrap ?
(Q20010863,P136,c(Q223393))
action filter_type
action find
entity Q20010863
relation P136
type Q223393
['Q20010863', 'P136', {'concept': 'Q223393'}]
SELECT DISTINCT ?a WHERE { resource:Q20010863 property:P136 ?a . ?a rdf:type ontology:Q223393 }
SunTrap
action filter_type
action find
entity SunTrap
relation genre
type literary genre
['SunTrap', 'genre', {'concept': 'literary genre'}]
SELECT DISTINCT ?a WHERE { resource:SunTrap property:genre ?a . ?a rdf:type ontology:literary_genre }
[]
literary genre
Q40831
SYSTEM
comedy
Q40831
(Q20010863,P136,c(Q223393))
action filter_type
action find
entity Q20010863
relation P136
type Q223393
[ANSWER] can be considered as category for SunTrap
['Q20010863', 'P136', {'concept': 'Q223393'}]
SELECT DISTINCT ?a WHERE { resource:Q20010863 property:P136 ?a . ?a rdf:type ontology:Q223393 }
comedy
Comedy can be considered as category for SunTrap
comedy
action filter_type
action find
entity SunTrap
relation genre
type literary genre
['SunTrap', 'genre', {'concept': 'literary genre'}]
SELECT DISTINCT ?a WHERE { resource:SunTrap property:genre ?a . ?a rdf:type ontology:literary_genre }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3740171 Q20010863
P161
Q502895
USER
Which people were casted in SunTrap or Black Emanuelle ?
OR((Q20010863,P161,c(Q502895)), (Q3740171,P161,c(Q502895)))
action filter_type
action union
action find
entity Q20010863
relation P161
action find
entity Q3740171
relation P161
type Q502895
{'OR': [['Q20010863', 'P161', {'concept': 'Q502895'}], ['Q3740171', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . { ?y property:P161 ?i . VALUES ( ?y ) { ( resource:Q20010863 ) ( resource:Q3740171 ) } } }
Black Emanuelle SunTrap
action filter_type
action union
action find
entity SunTrap
relation cast member
action find
entity Black Emanuelle
relation cast member
type common name
{'OR': [['SunTrap', 'cast member', {'concept': 'common name'}], ['Black Emanuelle', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . { ?y property:cast_member ?i . VALUES ( ?y ) { ( resource:SunTrap ) ( resource:Black_Emanuelle ) } } }
[]
common name
Q958262 Q4955063 Q6380733 Q376261 Q240527 Q2402622 Q1398564 Q77567
SYSTEM
Venantino Venantini, Bradley Walsh, Kayvan Novak, Angelo Infanti, Laura Gemser, Emma Pierson, Gabriele Tinti, Karin Schubert
Q958262 Q4955063 Q6380733 Q376261 Q240527 Q2402622 Q1398564 Q77567
OR((Q20010863,P161,c(Q502895)), (Q3740171,P161,c(Q502895)))
action filter_type
action union
action find
entity Q20010863
relation P161
action find
entity Q3740171
relation P161
type Q502895
[ANSWERS] were casted in SunTrap or Black Emanuelle
{'OR': [['Q20010863', 'P161', {'concept': 'Q502895'}], ['Q3740171', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . { ?y property:P161 ?i . VALUES ( ?y ) { ( resource:Q20010863 ) ( resource:Q3740171 ) } } }
Venantino Venantini Bradley Walsh Kayvan Novak Angelo Infanti Laura Gemser Emma Pierson Gabriele Tinti Karin Schubert
Venantino Venantini, Bradley Walsh, Kayvan Novak, Angelo Infanti, Laura Gemser, Emma Pierson, Gabriele Tinti and Karin Schubert were casted in SunTrap or Black Emanuelle
Venantino Venantini Bradley Walsh Kayvan Novak Angelo Infanti Laura Gemser Emma Pierson Gabriele Tinti Karin Schubert
action filter_type
action union
action find
entity SunTrap
relation cast member
action find
entity Black Emanuelle
relation cast member
type common name
{'OR': [['SunTrap', 'cast member', {'concept': 'common name'}], ['Black Emanuelle', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . { ?y property:cast_member ?i . VALUES ( ?y ) { ( resource:SunTrap ) ( resource:Black_Emanuelle ) } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do atmost 454 people know to play ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 454
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?t ) WHERE { ?f rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 . ?k property:P1303 ?f } GROUP BY ?f } . FILTER ( ?t <= 454 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 454
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?t ) WHERE { ?f rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name . ?k property:instrument ?f } GROUP BY ?f } . FILTER ( ?t <= 454 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 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 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 454
Atmost 454 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?t ) WHERE { ?f rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 . ?k property:P1303 ?f } GROUP BY ?f } . FILTER ( ?t <= 454 ) }
viola lyre acoustic bass guitar Body percussion 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 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
Atmost 454 people know about davul, harpsichord and Wurlitzer electric piano
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 454
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?k ) AS ?t ) WHERE { ?f rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name . ?k property:instrument ?f } GROUP BY ?f } . FILTER ( ?t <= 454 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q81982
P425
Q12737077
USER
Who has that musical instrument as the associated field of occupation ?
(Q81982,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q81982 property:P425 ?v . ?v rdf:type ontology:Q12737077 }
harpsichord
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:harpsichord property:field_of_this_occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q81982
SYSTEM
Did you mean harpsichord ?
Q1178361 Q81982 Q1759986
(Q1178361,P425,c(Q12737077)) (Q81982,P425,c(Q12737077)) (Q1759986,P425,c(Q12737077))
[ANSWER]
['Q1178361', 'P425', {'concept': 'Q12737077'}] ['Q81982', 'P425', {'concept': 'Q12737077'}] ['Q1759986', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q81982 property:P425 ?v . ?v rdf:type ontology:Q12737077 }
davul harpsichord Wurlitzer electric piano
Did you mean harpsichord ?
harpsichord
['davul', 'field of this occupation', {'concept': 'occupation'}] ['harpsichord', 'field of this occupation', {'concept': 'occupation'}] ['Wurlitzer electric piano', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:harpsichord property:field_of_this_occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(Q81982,P425,c(Q12737077))
['Q81982', 'P425', {'concept': 'Q12737077'}]
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
[]
Q5371902
SYSTEM
harpsichordist
Q5371902
(Q81982,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
Of [ANSWER] has that musical instrument as the associated field of occupation
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q81982 property:P425 ?v . ?v rdf:type ontology:Q12737077 }
harpsichordist
Of harpsichordist has that musical instrument as the associated field of occupation
harpsichordist
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:harpsichord property:field_of_this_occupation ?v . ?v rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3318415 Q376261
P27 P20
Q15617994
USER
Which administrative territories are the places of death of Angelo Infanti or are the countries of citizenship of Mohamed Benabdeslam Al-Brihi ?
OR((Q376261,P20,c(Q15617994)), (Q3318415,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q376261
relation P20
action find
entity Q3318415
relation P27
type Q15617994
{'OR': [['Q376261', 'P20', {'concept': 'Q15617994'}], ['Q3318415', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q376261 property:P20 ?n } UNION { resource:Q3318415 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Mohamed Benabdeslam Al-Brihi Angelo Infanti
action filter_type
action union
action find
entity Angelo Infanti
relation place of death
action find
entity Mohamed Benabdeslam Al-Brihi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Angelo Infanti', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Mohamed Benabdeslam Al-Brihi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Angelo_Infanti property:place_of_death ?n } UNION { resource:Mohamed_Benabdeslam_Al-Brihi property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159605 Q1028
SYSTEM
Tivoli, Morocco
Q159605 Q1028
OR((Q376261,P20,c(Q15617994)), (Q3318415,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q376261
relation P20
action find
entity Q3318415
relation P27
type Q15617994
[ANSWERS] are the places of death of Angelo Infanti or are the countries of citizenship of Mohamed Benabdeslam Al-Brihi
{'OR': [['Q376261', 'P20', {'concept': 'Q15617994'}], ['Q3318415', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q376261 property:P20 ?n } UNION { resource:Q3318415 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Tivoli Morocco
Tivoli and Morocco are the places of death of Angelo Infanti or are the countries of citizenship of Mohamed Benabdeslam Al-Brihi
Tivoli Morocco
action filter_type
action union
action find
entity Angelo Infanti
relation place of death
action find
entity Mohamed Benabdeslam Al-Brihi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Angelo Infanti', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Mohamed Benabdeslam Al-Brihi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Angelo_Infanti property:place_of_death ?n } UNION { resource:Mohamed_Benabdeslam_Al-Brihi property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q159605 Q1028
P47
Q15617994
USER
Which administrative territories have a shared border with those ones ?
(Q159605,P47,c(Q15617994)) (Q1028,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
['Q159605', 'P47', {'concept': 'Q15617994'}] ['Q1028', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { ?i property:P47 ?c . VALUES ( ?i ) { ( resource:Q159605 ) ( resource:Q1028 ) } . ?c rdf:type ontology:Q15617994 }
Tivoli Morocco
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Tivoli', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Morocco', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?i property:shares_border_with ?c . VALUES ( ?i ) { ( resource:Tivoli ) ( resource:Morocco ) } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q1025 Q262
SYSTEM
Spain, Mauritania, Algeria
Q242710 Q243521 Q242114 Q243371 Q243364 Q1025 Q262 Q29
(Q159605,P47,c(Q15617994)) (Q1028,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS] have a shared border with those ones
['Q159605', 'P47', {'concept': 'Q15617994'}] ['Q1028', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { ?i property:P47 ?c . VALUES ( ?i ) { ( resource:Q159605 ) ( resource:Q1028 ) } . ?c rdf:type ontology:Q15617994 }
Guidonia Montecelio Vicovaro Castel Madama San Polo dei Cavalieri San Gregorio da Sassola Mauritania Algeria Spain
Spain, Mauritania and Algeria have a shared border with those ones
Spain Mauritania Algeria
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Tivoli', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Morocco', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?i property:shares_border_with ?c . VALUES ( ?i ) { ( resource:Tivoli ) ( resource:Morocco ) } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]