Simple Question (Direct)
Simple Question
Q552097
P734
Q82799
USER
Which name is associated with Ola John ?
(Q552097,P734,c(Q82799))
action filter_type
action find
entity Q552097
relation P734
type Q82799
['Q552097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q552097 property:P734 ?v . ?v rdf:type ontology:Q82799 }
Ola John
action filter_type
action find
entity Ola John
relation family name
type name
['Ola John', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Ola_John property:family_name ?v . ?v rdf:type ontology:name }
[]
name
Q5281981
SYSTEM
John
Q5281981
(Q552097,P734,c(Q82799))
action filter_type
action find
entity Q552097
relation P734
type Q82799
[ANSWER] is associated with Ola [ANSWER]
['Q552097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q552097 property:P734 ?v . ?v rdf:type ontology:Q82799 }
John
John is associated with Ola John
John
action filter_type
action find
entity Ola John
relation family name
type name
['Ola John', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Ola_John property:family_name ?v . ?v rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q552097
P7
Q502895
USER
Which people had that one as brother ?
(c(Q502895),P7,Q5281981)
action filter_type
action find
entity Q552097
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q5281981']
SELECT DISTINCT ?a WHERE { resource:Q552097 property:P7 ?a . ?a rdf:type ontology:Q502895 }
Ola John
action filter_type
action find
entity Ola John
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'John']
SELECT DISTINCT ?a WHERE { resource:Ola_John property:brother ?a . ?a rdf:type ontology:common_name }
[]
common name
Q703648 Q526567
SYSTEM
Collins John, Paddy John
Q703648 Q526567
(c(Q502895),P7,Q5281981)
action filter_type
action find
entity Q552097
relation P7
type Q502895
[ANSWERS] had that one as brother
[{'concept': 'Q502895'}, 'P7', 'Q5281981']
SELECT DISTINCT ?a WHERE { resource:Q552097 property:P7 ?a . ?a rdf:type ontology:Q502895 }
Collins John Paddy John
Collins John and Paddy John had that one as brother
Collins John Paddy John
action filter_type
action find
entity Ola John
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'John']
SELECT DISTINCT ?a WHERE { resource:Ola_John property:brother ?a . ?a rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q552097
P21 P7
Q502895
USER
Which people have Ola John as their sibling and have the gender as male ?
AND((c(Q502895),P7,Q552097), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q552097
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q552097'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?p WHERE { ?p property:P7 resource:Q552097 . ?p property:P21 resource:Q6581097 . ?p rdf:type ontology:Q502895 }
male Ola John
action filter_type
action intersection
action find_reverse
entity Ola John
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Ola John'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?p WHERE { ?p property:brother resource:Ola_John . ?p property:gender resource:male . ?p rdf:type ontology:common_name }
[]
common name
Q703648 Q526567
SYSTEM
Collins John, Paddy John
Q703648 Q526567
AND((c(Q502895),P7,Q552097), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q552097
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Ola John as their sibling and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q552097'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?p WHERE { ?p property:P7 resource:Q552097 . ?p property:P21 resource:Q6581097 . ?p rdf:type ontology:Q502895 }
Collins John Paddy John
Collins John and Paddy John have Ola John as their sibling and have the gender as male
Collins John Paddy John
action filter_type
action intersection
action find_reverse
entity Ola John
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Ola John'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?p WHERE { ?p property:brother resource:Ola_John . ?p property:gender resource:male . ?p rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q466458
P7
Q502895
USER
Are those ones a brother of Laurence Golborne ?
(Q466458,P7,Q703648) (Q466458,P7,Q526567)
action is_in
entity prev_answer
action find
entity Q466458
relation P7
['Q466458', 'P7', 'Q703648'] ['Q466458', 'P7', 'Q526567']
ASK WHERE { VALUES ( ?l ) { ( resource:Q703648 ) ( resource:Q526567 ) } . resource:Q466458 property:P7 ?l }
Laurence Golborne
action is_in
entity prev_answer
action find
entity Laurence Golborne
relation brother
['Laurence Golborne', 'brother', 'Collins John'] ['Laurence Golborne', 'brother', 'Paddy John']
ASK WHERE { VALUES ( ?l ) { ( resource:Collins_John ) ( resource:Paddy_John ) } . resource:Laurence_Golborne property:brother ?l }
[]
common name
SYSTEM
NO
(Q466458,P7,Q703648) (Q466458,P7,Q526567)
action is_in
entity prev_answer
action find
entity Q466458
relation P7
[ANSWER]
['Q466458', 'P7', 'Q703648'] ['Q466458', 'P7', 'Q526567']
ASK WHERE { VALUES ( ?l ) { ( resource:Q703648 ) ( resource:Q526567 ) } . resource:Q466458 property:P7 ?l }
No
action is_in
entity prev_answer
action find
entity Laurence Golborne
relation brother
['Laurence Golborne', 'brother', 'Collins John'] ['Laurence Golborne', 'brother', 'Paddy John']
ASK WHERE { VALUES ( ?l ) { ( resource:Collins_John ) ( resource:Paddy_John ) } . resource:Laurence_Golborne property:brother ?l }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q703648 Q44118
P7
Q502895
USER
Does Hamit Altıntop have Collins John as their brother ?
(Q703648,P7,Q44118)
action is_in
entity Q44118
action find
entity Q703648
relation P7
['Q703648', 'P7', 'Q44118']
ASK WHERE { resource:Q703648 property:P7 resource:Q44118 }
Collins John Hamit Altıntop
action is_in
entity Hamit Altıntop
action find
entity Collins John
relation brother
['Collins John', 'brother', 'Hamit Altıntop']
ASK WHERE { resource:Collins_John property:brother resource:Hamit_Altıntop }
[]
common name
SYSTEM
NO
(Q703648,P7,Q44118)
action is_in
entity Q44118
action find
entity Q703648
relation P7
[ANSWER]
['Q703648', 'P7', 'Q44118']
ASK WHERE { resource:Q703648 property:P7 resource:Q44118 }
No
action is_in
entity Hamit Altıntop
action find
entity Collins John
relation brother
['Collins John', 'brother', 'Hamit Altıntop']
ASK WHERE { resource:Collins_John property:brother resource:Hamit_Altıntop }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can around 2118 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2118
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?h ) WHERE { ?r rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 . ?o property:P1303 ?r } GROUP BY ?r } . FILTER ( ?h = 2118 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2118
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?h ) WHERE { ?r rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name . ?o property:instrument ?r } GROUP BY ?r } . FILTER ( ?h = 2118 ) }
[]
musical instrument common name
Q46185 Q8338 Q8371
SYSTEM
bass guitar, trumpet, cello
Q46185 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2118
[ANSWERS] can around 2118 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?h ) WHERE { ?r rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 . ?o property:P1303 ?r } GROUP BY ?r } . FILTER ( ?h = 2118 ) }
bass guitar trumpet cello organ drum kit
Bass guitar, trumpet and cello can around 2118 people perform with
bass guitar trumpet cello
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2118
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?h ) WHERE { ?r rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name . ?o property:instrument ?r } GROUP BY ?r } . FILTER ( ?h = 2118 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P870
Q34379 Q207628 Q15850590
USER
Which musical instruments are used as instrumentation in approximately the same number of musical compositions or theatrical genres as that musical instrument ?
(c(Q207628)|c(Q15850590),P870,c(Q34379))
[[{'concept': 'Q207628'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q15850590 }
[[{'concept': 'musical composition'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:theatrical_genre }
[]
musical instrument musical composition theatrical genre
Comparative|More/Less|Mult. entity type|Clarification
Q46185
SYSTEM
Did you mean bass guitar ?
(c(Q207628)|c(Q15850590),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q207628'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q15850590 }
Did you mean bass guitar ?
bass guitar
[[{'concept': 'musical composition'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:theatrical_genre }
[]
Comparative Reasoning (All)
USER
No, I meant cello. Could you tell me the answer for that?
(c(Q207628)|c(Q15850590),P870,c(Q34379))
Q8371
[[{'concept': 'Q207628'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
[[{'concept': 'musical composition'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
[]
Q521151 Q81982 Q80284
SYSTEM
baryton, harpsichord, viola
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q39777 Q8355 Q11404 Q206987 Q81982
(c(Q207628)|c(Q15850590),P870,c(Q34379))
[ANSWERS] are used as instrumentation in approximately the same number of musical compositions or theatrical genres as that musical instrument
[[{'concept': 'Q207628'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q15850590 }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta maraca violin drum vibraphone harpsichord
Baryton, harpsichord and viola are used as instrumentation in approximately the same number of musical compositions or theatrical genres as that musical instrument
baryton harpsichord viola
[[{'concept': 'musical composition'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:theatrical_genre }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P870
Q34379 Q15850590 Q862597
USER
How many musical instruments are the instrumentations used in lesser number of theatrical genres or musical forms than that musical instrument ?
(c(Q15850590)|c(Q862597),P870,c(Q34379))
[[{'concept': 'Q15850590'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q15850590 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q862597 }
[[{'concept': 'theatrical genre'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:theatrical_genre . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:musical_form }
[]
musical instrument theatrical genre musical form
Comparative|Count over More/Less|Mult. entity type|Clarification
Q81982
SYSTEM
Did you mean harpsichord ?
(c(Q15850590)|c(Q862597),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q15850590 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q862597 }
Did you mean harpsichord ?
harpsichord
[[{'concept': 'theatrical genre'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:theatrical_genre . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:musical_form }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant baryton. Could you tell me the answer for that?
(c(Q15850590)|c(Q862597),P870,c(Q34379))
Q521151
[[{'concept': 'Q15850590'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
[[{'concept': 'theatrical genre'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
[]
SYSTEM
0
(c(Q15850590)|c(Q862597),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q15850590 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q862597 }
0
[[{'concept': 'theatrical genre'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:theatrical_genre . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:musical_form }
[]