Simple Question (Direct)
Simple Question
Q5555691
P58
Q502895
USER
Who served as the screenwriter for Gharaonda ?
(Q5555691,P58,c(Q502895))
action filter_type
action find
entity Q5555691
relation P58
type Q502895
['Q5555691', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q5555691 property:P58 ?k }
Gharaonda
action filter_type
action find
entity Gharaonda
relation screenwriter
type common name
['Gharaonda', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Gharaonda property:screenwriter ?k }
[]
common name
Q468339
SYSTEM
Gulzar
Q468339
(Q5555691,P58,c(Q502895))
action filter_type
action find
entity Q5555691
relation P58
type Q502895
[ANSWER] served as the screenwriter for Gharaonda
['Q5555691', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q5555691 property:P58 ?k }
Gulzar
Gulzar served as the screenwriter for Gharaonda
Gulzar
action filter_type
action find
entity Gharaonda
relation screenwriter
type common name
['Gharaonda', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Gharaonda property:screenwriter ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q468339
P162
Q838948
USER
Which work of art has been developed by that person ?
(c(Q838948),P162,Q468339)
action filter_type
action find_reverse
entity Q468339
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q468339']
SELECT DISTINCT ?n WHERE { ?n property:P162 resource:Q468339 . ?n rdf:type ontology:Q838948 }
Gulzar
action filter_type
action find_reverse
entity Gulzar
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Gulzar']
SELECT DISTINCT ?n WHERE { ?n property:producer resource:Gulzar . ?n rdf:type ontology:work_of_art }
[]
work of art
Q6417658
SYSTEM
Kitaab
Q6417658
(c(Q838948),P162,Q468339)
action filter_type
action find_reverse
entity Q468339
relation P162
type Q838948
[ANSWER] has been developed by that person
[{'concept': 'Q838948'}, 'P162', 'Q468339']
SELECT DISTINCT ?n WHERE { ?n property:P162 resource:Q468339 . ?n rdf:type ontology:Q838948 }
Kitaab
Kitaab has been developed by that person
Kitaab
action filter_type
action find_reverse
entity Gulzar
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Gulzar']
SELECT DISTINCT ?n WHERE { ?n property:producer resource:Gulzar . ?n rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q468339
P264
Q2031291
USER
Which release has been sponsored by that person for its recording ?
(c(Q2031291),P264,Q6417658)
action filter_type
action find_reverse
entity Q468339
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q6417658']
SELECT DISTINCT ?o WHERE { ?o property:P264 resource:Q468339 . ?o rdf:type ontology:Q2031291 }
Gulzar
action filter_type
action find_reverse
entity Gulzar
relation record label
type release
[{'concept': 'release'}, 'record label', 'Kitaab']
SELECT DISTINCT ?o WHERE { ?o property:record_label resource:Gulzar . ?o rdf:type ontology:release }
[]
release
Q7935557
SYSTEM
Visaal
Q7935557
(c(Q2031291),P264,Q6417658)
action filter_type
action find_reverse
entity Q468339
relation P264
type Q2031291
[ANSWER] has been sponsored by that person for its recording
[{'concept': 'Q2031291'}, 'P264', 'Q6417658']
SELECT DISTINCT ?o WHERE { ?o property:P264 resource:Q468339 . ?o rdf:type ontology:Q2031291 }
Visaal
Visaal has been sponsored by that person for its recording
Visaal
action filter_type
action find_reverse
entity Gulzar
relation record label
type release
[{'concept': 'release'}, 'record label', 'Kitaab']
SELECT DISTINCT ?o WHERE { ?o property:record_label resource:Gulzar . ?o rdf:type ontology:release }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4756096
P344
Q502895
USER
Who is the cinematographer of Andremo in città ?
(Q4756096,P344,c(Q502895))
action filter_type
action find
entity Q4756096
relation P344
type Q502895
['Q4756096', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q4756096 property:P344 ?g }
Andremo in città
action filter_type
action find
entity Andremo in città
relation director of photography
type common name
['Andremo in città', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Andremo_in_città property:director_of_photography ?g }
[]
common name
Q1567717
SYSTEM
Tonino Delli Colli
Q1567717
(Q4756096,P344,c(Q502895))
action filter_type
action find
entity Q4756096
relation P344
type Q502895
The cinematographer of Andremo in città is to [ANSWER]
['Q4756096', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q4756096 property:P344 ?g }
Tonino Delli Colli
The cinematographer of Andremo in città is to Tonino Delli Colli
Tonino Delli Colli
action filter_type
action find
entity Andremo in città
relation director of photography
type common name
['Andremo in città', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Andremo_in_città property:director_of_photography ?g }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do approximately 899 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 899
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?m = 899 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 899
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?m = 899 ) }
[]
musical instrument common name
SYSTEM
63
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 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
value 899
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?m = 899 ) }
viola bass guitar 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 trumpet 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 drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
63
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 899
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?m = 899 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q42746 Q6417658
P47 P495
Q15617994
USER
Which administrative territories are the origins of Kitaab or are adjacent to Salvirola ?
OR((Q6417658,P495,c(Q15617994)), (Q42746,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q6417658
relation P495
action find
entity Q42746
relation P47
type Q15617994
{'OR': [['Q6417658', 'P495', {'concept': 'Q15617994'}], ['Q42746', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6417658 property:P495 ?v } UNION { resource:Q42746 property:P47 ?v } } . ?v rdf:type ontology:Q15617994 }
Salvirola Kitaab
action filter_type
action union
action find
entity Kitaab
relation country of origin
action find
entity Salvirola
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Kitaab', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Salvirola', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Kitaab property:country_of_origin ?v } UNION { resource:Salvirola property:shares_border_with ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q42853 Q42524 Q42849 Q42871 Q42277 Q668
SYSTEM
Fiesco, Romanengo, Trigolo, Izano, Ticengo, India
Q42853 Q42524 Q42849 Q42871 Q42277 Q668
OR((Q6417658,P495,c(Q15617994)), (Q42746,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q6417658
relation P495
action find
entity Q42746
relation P47
type Q15617994
[ANSWERS] are the origins of Kitaab or are adjacent to Salvirola
{'OR': [['Q6417658', 'P495', {'concept': 'Q15617994'}], ['Q42746', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6417658 property:P495 ?v } UNION { resource:Q42746 property:P47 ?v } } . ?v rdf:type ontology:Q15617994 }
Fiesco Romanengo Trigolo Izano Ticengo India
Fiesco, Romanengo, Trigolo, Izano, Ticengo and India are the origins of Kitaab or are adjacent to Salvirola
Fiesco Romanengo Trigolo Izano Ticengo India
action filter_type
action union
action find
entity Kitaab
relation country of origin
action find
entity Salvirola
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Kitaab', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Salvirola', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Kitaab property:country_of_origin ?v } UNION { resource:Salvirola property:shares_border_with ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q42277
P19
Q502895
USER
Which people have place of birth as that administrative territory ?
(c(Q502895),P19,Q42277)
action filter_type
action find_reverse
entity Q42277
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q42277']
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q42277 . ?l rdf:type ontology:Q502895 }
Ticengo
action filter_type
action find_reverse
entity Ticengo
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Ticengo']
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Ticengo . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q42871
SYSTEM
Did you mean Izano ?
Q42853 Q42524 Q42849 Q42871 Q42277 Q668
(c(Q502895),P19,Q42853) (c(Q502895),P19,Q42524) (c(Q502895),P19,Q42849) (c(Q502895),P19,Q42871) (c(Q502895),P19,Q42277) (c(Q502895),P19,Q668)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q42853'] [{'concept': 'Q502895'}, 'P19', 'Q42524'] [{'concept': 'Q502895'}, 'P19', 'Q42849'] [{'concept': 'Q502895'}, 'P19', 'Q42871'] [{'concept': 'Q502895'}, 'P19', 'Q42277'] [{'concept': 'Q502895'}, 'P19', 'Q668']
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q42277 . ?l rdf:type ontology:Q502895 }
Fiesco Romanengo Trigolo Izano Ticengo India
Did you mean Izano ?
Izano
[{'concept': 'common name'}, 'place of birth', 'Fiesco'] [{'concept': 'common name'}, 'place of birth', 'Romanengo'] [{'concept': 'common name'}, 'place of birth', 'Trigolo'] [{'concept': 'common name'}, 'place of birth', 'Izano'] [{'concept': 'common name'}, 'place of birth', 'Ticengo'] [{'concept': 'common name'}, 'place of birth', 'India']
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Ticengo . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Ticengo. Could you tell me the answer for that?
(c(Q502895),P19,Q42277)
Q42277
[{'concept': 'Q502895'}, 'P19', 'Q42277']
[{'concept': 'common name'}, 'place of birth', 'Ticengo']
[]
Q3932782 Q3726574
SYSTEM
Renato Sali, Enzo Mainardi
Q3932782 Q3726574
(c(Q502895),P19,Q42277)
action filter_type
action find_reverse
entity Q42277
relation P19
type Q502895
[ANSWERS] have place of birth as that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q42277']
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q42277 . ?l rdf:type ontology:Q502895 }
Renato Sali Enzo Mainardi
Renato Sali and Enzo Mainardi have place of birth as that administrative territory
Renato Sali Enzo Mainardi
action filter_type
action find_reverse
entity Ticengo
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Ticengo']
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Ticengo . ?l rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1370486 Q3726574
P27
Q15617994
USER
Which administrative territories are the native countriesof Enzo Mainardi or Paul Lambrichts ?
OR((Q3726574,P27,c(Q15617994)), (Q1370486,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3726574
relation P27
action find
entity Q1370486
relation P27
type Q15617994
{'OR': [['Q3726574', 'P27', {'concept': 'Q15617994'}], ['Q1370486', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q3726574 property:P27 ?v } UNION { resource:Q1370486 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Paul Lambrichts Enzo Mainardi
action filter_type
action union
action find
entity Enzo Mainardi
relation country of citizenship
action find
entity Paul Lambrichts
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Enzo Mainardi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Paul Lambrichts', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Enzo_Mainardi property:country_of_citizenship ?v } UNION { resource:Paul_Lambrichts property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q38
SYSTEM
Belgium, Italy
Q31 Q38
OR((Q3726574,P27,c(Q15617994)), (Q1370486,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3726574
relation P27
action find
entity Q1370486
relation P27
type Q15617994
[ANSWERS] are the native countriesof Enzo Mainardi or Paul Lambrichts
{'OR': [['Q3726574', 'P27', {'concept': 'Q15617994'}], ['Q1370486', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q3726574 property:P27 ?v } UNION { resource:Q1370486 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Belgium Italy
Belgium and Italy are the native countriesof Enzo Mainardi or Paul Lambrichts
Belgium Italy
action filter_type
action union
action find
entity Enzo Mainardi
relation country of citizenship
action find
entity Paul Lambrichts
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Enzo Mainardi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Paul Lambrichts', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Enzo_Mainardi property:country_of_citizenship ?v } UNION { resource:Paul_Lambrichts property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]