Simple Question (Direct)
Simple Question
Q19670646
P607
Q1190554
USER
What were the events that Stamatis Mercouris took part in
(Q19670646,P607,c(Q1190554))
action filter_type
action find
entity Q19670646
relation P607
type Q1190554
['Q19670646', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?c WHERE { resource:Q19670646 property:P607 ?c . ?c rdf:type ontology:Q1190554 }
Stamatis Mercouris
action filter_type
action find
entity Stamatis Mercouris
relation conflict
type event
['Stamatis Mercouris', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?c WHERE { resource:Stamatis_Mercouris property:conflict ?c . ?c rdf:type ontology:event }
[]
event
Q87138 Q223604
SYSTEM
Greco-Turkish War, Greco-Italian War
Q87138 Q223604
(Q19670646,P607,c(Q1190554))
action filter_type
action find
entity Q19670646
relation P607
type Q1190554
The events that Stamatis Mercouris took part in were the [ANSWERS]
['Q19670646', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?c WHERE { resource:Q19670646 property:P607 ?c . ?c rdf:type ontology:Q1190554 }
Greco-Turkish War Greco-Italian War
The events that Stamatis Mercouris took part in were the Greco-Turkish War and Greco-Italian War
Greco-Turkish War Greco-Italian War
action filter_type
action find
entity Stamatis Mercouris
relation conflict
type event
['Stamatis Mercouris', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?c WHERE { resource:Stamatis_Mercouris property:conflict ?c . ?c rdf:type ontology:event }
[]
Clarification
Simple Question|Single Entity|Indirect
Q87138
P921
Q838948
USER
Which work of art was primarily based on that event ?
(c(Q838948),P921,Q87138)
action filter_type
action find_reverse
entity Q87138
relation P921
type Q838948
[{'concept': 'Q838948'}, 'P921', 'Q87138']
SELECT DISTINCT ?z WHERE { ?z property:P921 resource:Q87138 . ?z rdf:type ontology:Q838948 }
Greco-Turkish War
action filter_type
action find_reverse
entity Greco-Turkish War
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Greco-Turkish War']
SELECT DISTINCT ?z WHERE { ?z property:main_subject resource:Greco-Turkish_War . ?z rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q87138
SYSTEM
Did you mean Greco-Turkish War ?
Q87138 Q223604
(c(Q838948),P921,Q87138) (c(Q838948),P921,Q223604)
[ANSWER]
[{'concept': 'Q838948'}, 'P921', 'Q87138'] [{'concept': 'Q838948'}, 'P921', 'Q223604']
SELECT DISTINCT ?z WHERE { ?z property:P921 resource:Q87138 . ?z rdf:type ontology:Q838948 }
Greco-Turkish War Greco-Italian War
Did you mean Greco-Turkish War ?
Greco-Turkish War
[{'concept': 'work of art'}, 'main subject', 'Greco-Turkish War'] [{'concept': 'work of art'}, 'main subject', 'Greco-Italian War']
SELECT DISTINCT ?z WHERE { ?z property:main_subject resource:Greco-Turkish_War . ?z rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P921,Q87138)
[{'concept': 'Q838948'}, 'P921', 'Q87138']
[{'concept': 'work of art'}, 'main subject', 'Greco-Turkish War']
[]
Q1896743
SYSTEM
Rembetiko
Q1896743
(c(Q838948),P921,Q87138)
action filter_type
action find_reverse
entity Q87138
relation P921
type Q838948
[ANSWER] was primarily based on that event
[{'concept': 'Q838948'}, 'P921', 'Q87138']
SELECT DISTINCT ?z WHERE { ?z property:P921 resource:Q87138 . ?z rdf:type ontology:Q838948 }
Rembetiko
Rembetiko was primarily based on that event
Rembetiko
action filter_type
action find_reverse
entity Greco-Turkish War
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Greco-Turkish War']
SELECT DISTINCT ?z WHERE { ?z property:main_subject resource:Greco-Turkish_War . ?z rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P921
Q1190554 Q151885
USER
How many events and concepts were the main subjects of that work of art 's work ?
(Q1896743,P921,c(Q1190554)) (Q1896743,P921,c(Q151885)) (Q1896743,P921,c(Q1190554)) (Q1896743,P921,c(Q151885))
action count
action union
action filter_type
action find
entity Q1896743
relation P921
type Q1190554
action filter_type
action find
entity Q1896743
relation P921
type Q151885
['Q1896743', 'P921', {'concept': 'Q1190554'}] ['Q1896743', 'P921', {'concept': 'Q151885'}] ['Q1896743', 'P921', {'concept': 'Q1190554'}] ['Q1896743', 'P921', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { resource:Q1896743 property:P921 ?e . ?e rdf:type ontology:Q1190554 } UNION { resource:Q1896743 property:P921 ?e . ?e rdf:type ontology:Q151885 } }
action count
action union
action filter_type
action find
entity Rembetiko
relation main subject
type event
action filter_type
action find
entity Rembetiko
relation main subject
type concept
['Rembetiko', 'main subject', {'concept': 'event'}] ['Rembetiko', 'main subject', {'concept': 'concept'}] ['Rembetiko', 'main subject', {'concept': 'event'}] ['Rembetiko', 'main subject', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { resource:Rembetiko property:main_subject ?e . ?e rdf:type ontology:event } UNION { resource:Rembetiko property:main_subject ?e . ?e rdf:type ontology:concept } }
[]
event concept
SYSTEM
1 events and 1 concepts
Q87138 Q220528
(Q1896743,P921,c(Q1190554)) (Q1896743,P921,c(Q151885)) (Q1896743,P921,c(Q1190554)) (Q1896743,P921,c(Q151885))
action count
action union
action filter_type
action find
entity Q1896743
relation P921
type Q1190554
action filter_type
action find
entity Q1896743
relation P921
type Q151885
[ANSWER]
['Q1896743', 'P921', {'concept': 'Q1190554'}] ['Q1896743', 'P921', {'concept': 'Q151885'}] ['Q1896743', 'P921', {'concept': 'Q1190554'}] ['Q1896743', 'P921', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { resource:Q1896743 property:P921 ?e . ?e rdf:type ontology:Q1190554 } UNION { resource:Q1896743 property:P921 ?e . ?e rdf:type ontology:Q151885 } }
Greco-Turkish War Rebetiko
1 events and 1 concepts
action count
action union
action filter_type
action find
entity Rembetiko
relation main subject
type event
action filter_type
action find
entity Rembetiko
relation main subject
type concept
['Rembetiko', 'main subject', {'concept': 'event'}] ['Rembetiko', 'main subject', {'concept': 'concept'}] ['Rembetiko', 'main subject', {'concept': 'event'}] ['Rembetiko', 'main subject', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { resource:Rembetiko property:main_subject ?e . ?e rdf:type ontology:event } UNION { resource:Rembetiko property:main_subject ?e . ?e rdf:type ontology:concept } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1896743
P161
Q502895
USER
How many people were casted in Rembetiko ?
(Q1896743,P161,c(Q502895))
action count
action filter_type
action find
entity Q1896743
relation P161
type Q502895
['Q1896743', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Q1896743 property:P161 ?o . ?o rdf:type ontology:Q502895 }
Rembetiko
action count
action filter_type
action find
entity Rembetiko
relation cast member
type common name
['Rembetiko', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Rembetiko property:cast_member ?o . ?o rdf:type ontology:common_name }
[]
common name
SYSTEM
6
Q16329793 Q4937773 Q21995195 Q7925550 Q3556315 Q12885101
(Q1896743,P161,c(Q502895))
action count
action filter_type
action find
entity Q1896743
relation P161
type Q502895
[ANSWER]
['Q1896743', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Q1896743 property:P161 ?o . ?o rdf:type ontology:Q502895 }
Athina Mertyri Themis Bazaka Nikos Kalogeropoulos Vicky Vanita Nikolas Asimos Sotiria Leonardou
6
action count
action filter_type
action find
entity Rembetiko
relation cast member
type common name
['Rembetiko', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { resource:Rembetiko property:cast_member ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1896743
P86
Q502895
USER
Who composed that work of art ?
action filter_type
action find
entity Q1896743
relation P86
type Q502895
SELECT DISTINCT ?a WHERE { resource:Q1896743 property:P86 ?a . ?a rdf:type ontology:Q502895 }
Rembetiko
action filter_type
action find
entity Rembetiko
relation composer
type common name
SELECT DISTINCT ?a WHERE { resource:Rembetiko property:composer ?a . ?a rdf:type ontology:common_name }
[]
common name
Q1347993
SYSTEM
Stavros Xarchakos
Q1347993
action filter_type
action find
entity Q1896743
relation P86
type Q502895
[ANSWER] composed that work of art
SELECT DISTINCT ?a WHERE { resource:Q1896743 property:P86 ?a . ?a rdf:type ontology:Q502895 }
Stavros Xarchakos
Stavros Xarchakos composed that work of art
Stavros Xarchakos
action filter_type
action find
entity Rembetiko
relation composer
type common name
SELECT DISTINCT ?a WHERE { resource:Rembetiko property:composer ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1347993
P802
Q502895
USER
Who was a notable student of that one ?
(c(Q502895),P802,Q1347993)
action filter_type
action find_reverse
entity Q1347993
relation P802
type Q502895
[{'concept': 'Q502895'}, 'P802', 'Q1347993']
SELECT DISTINCT ?t WHERE { ?t property:P802 resource:Q1347993 . ?t rdf:type ontology:Q502895 }
Stavros Xarchakos
action filter_type
action find_reverse
entity Stavros Xarchakos
relation student
type common name
[{'concept': 'common name'}, 'student', 'Stavros Xarchakos']
SELECT DISTINCT ?t WHERE { ?t property:student resource:Stavros_Xarchakos . ?t rdf:type ontology:common_name }
[]
common name
Q140619
SYSTEM
Nadia Boulanger
Q140619
(c(Q502895),P802,Q1347993)
action filter_type
action find_reverse
entity Q1347993
relation P802
type Q502895
Was a notable student of that one [ANSWER]
[{'concept': 'Q502895'}, 'P802', 'Q1347993']
SELECT DISTINCT ?t WHERE { ?t property:P802 resource:Q1347993 . ?t rdf:type ontology:Q502895 }
Nadia Boulanger
Was a notable student of that one Nadia Boulanger
Nadia Boulanger
action filter_type
action find_reverse
entity Stavros Xarchakos
relation student
type common name
[{'concept': 'common name'}, 'student', 'Stavros Xarchakos']
SELECT DISTINCT ?t WHERE { ?t property:student resource:Stavros_Xarchakos . ?t rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q140619 Q5196197 Q2589694
P802
Q502895
USER
Was Cushing Strout and Wolfgang Gierlinger a student of Q140619 ?
(Q140619,P802,Q5196197) (Q140619,P802,Q2589694)
action is_in
entity Q140619
action intersection
action find_reverse
entity Q5196197
relation P802
action find_reverse
entity Q2589694
relation P802
['Q140619', 'P802', 'Q5196197'] ['Q140619', 'P802', 'Q2589694']
ASK WHERE { resource:Q140619 property:P802 resource:Q5196197 . resource:Q140619 property:P802 resource:Q2589694 }
Nadia Boulanger Cushing Strout Wolfgang Gierlinger
action is_in
entity Nadia Boulanger
action intersection
action find_reverse
entity Cushing Strout
relation student
action find_reverse
entity Wolfgang Gierlinger
relation student
['Nadia Boulanger', 'student', 'Cushing Strout'] ['Nadia Boulanger', 'student', 'Wolfgang Gierlinger']
ASK WHERE { resource:Nadia_Boulanger property:student resource:Cushing_Strout . resource:Nadia_Boulanger property:student resource:Wolfgang_Gierlinger }
[]
common name
SYSTEM
NO
(Q140619,P802,Q5196197) (Q140619,P802,Q2589694)
action is_in
entity Q140619
action intersection
action find_reverse
entity Q5196197
relation P802
action find_reverse
entity Q2589694
relation P802
[ANSWER]
['Q140619', 'P802', 'Q5196197'] ['Q140619', 'P802', 'Q2589694']
ASK WHERE { resource:Q140619 property:P802 resource:Q5196197 . resource:Q140619 property:P802 resource:Q2589694 }
No
action is_in
entity Nadia Boulanger
action intersection
action find_reverse
entity Cushing Strout
relation student
action find_reverse
entity Wolfgang Gierlinger
relation student
['Nadia Boulanger', 'student', 'Cushing Strout'] ['Nadia Boulanger', 'student', 'Wolfgang Gierlinger']
ASK WHERE { resource:Nadia_Boulanger property:student resource:Cushing_Strout . resource:Nadia_Boulanger property:student resource:Wolfgang_Gierlinger }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by around 900 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 900
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?d = 900 ) . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?s } }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 900
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?d = 900 ) . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?s } }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
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 approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 900
[ANSWERS] are played by around 900 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?d = 900 ) . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?s } }
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
Davul, harpsichord and Wurlitzer electric piano are played by around 900 people
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 900
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?d = 900 ) . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?s } }
[]