Simple Question (Direct)
Simple Question
Q980318
P1196
Q1931388
USER
What manner did Francisco Lameyer y Berenguer die ?
(Q980318,P1196,c(Q1931388))
action filter_type
action find
entity Q980318
relation P1196
type Q1931388
['Q980318', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { resource:Q980318 property:P1196 ?q . ?q rdf:type ontology:Q1931388 }
Francisco Lameyer y Berenguer
action filter_type
action find
entity Francisco Lameyer y Berenguer
relation manner of death
type cause of death
['Francisco Lameyer y Berenguer', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { resource:Francisco_Lameyer_y_Berenguer property:manner_of_death ?q . ?q rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q980318,P1196,c(Q1931388))
action filter_type
action find
entity Q980318
relation P1196
type Q1931388
Francisco Lameyer y Berenguer died of [ANSWER]
['Q980318', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?q WHERE { resource:Q980318 property:P1196 ?q . ?q rdf:type ontology:Q1931388 }
natural causes
Francisco Lameyer y Berenguer died of natural causes
natural causes
action filter_type
action find
entity Francisco Lameyer y Berenguer
relation manner of death
type cause of death
['Francisco Lameyer y Berenguer', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?q WHERE { resource:Francisco_Lameyer_y_Berenguer property:manner_of_death ?q . ?q rdf:type ontology:cause_of_death }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1343007
P1303
Q34379 Q502895
USER
Which musical instruments can more number of people perform with than electronic keyboard ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1343007
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Q1343007 property:P1303 ?s . ?s rdf:type ontology:Q34379 } } . FILTER ( ?v > ?b ) }
electronic keyboard
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity electronic keyboard
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:electronic_keyboard property:instrument ?s . ?s rdf:type ontology:musical_instrument } } . FILTER ( ?v > ?b ) }
[]
musical instrument common name
Q5994 Q80284 Q46185
SYSTEM
piano, viola, bass guitar
Q80284 Q46185 Q80019 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1343007
relation P1303
type Q34379
[ANSWERS] can more number of people perform with than electronic keyboard
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Q1343007 property:P1303 ?s . ?s rdf:type ontology:Q34379 } } . FILTER ( ?v > ?b ) }
viola bass guitar double bass piano trumpet cello violin organ drum kit
Piano, viola and bass guitar can more number of people perform with than electronic keyboard
piano viola bass guitar
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity electronic keyboard
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?v ) WHERE { ?t property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:electronic_keyboard property:instrument ?s . ?s rdf:type ontology:musical_instrument } } . FILTER ( ?v > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q483994
P1303
Q34379 Q502895
USER
And how about Kazoo?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q483994
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { ?y rdf:type ontology:Q34379 . resource:Q483994 property:P1303 ?y } } . FILTER ( ?s > ?d ) }
Kazoo
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kazoo
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { ?y rdf:type ontology:musical_instrument . resource:Kazoo property:instrument ?y } } . FILTER ( ?s > ?d ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q483994
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { ?y rdf:type ontology:Q34379 . resource:Q483994 property:P1303 ?y } } . FILTER ( ?s > ?d ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kazoo
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { ?y rdf:type ontology:musical_instrument . resource:Kazoo property:instrument ?y } } . FILTER ( ?s > ?d ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3290042
P1303
Q502895
USER
Does Marco Amenta know to play those musical instruments ?
(Q3290042,P1303,Q5994) (Q3290042,P1303,Q81982) (Q3290042,P1303,Q80284)
action is_in
entity prev_answer
action find
entity Q3290042
relation P1303
['Q3290042', 'P1303', 'Q5994'] ['Q3290042', 'P1303', 'Q81982'] ['Q3290042', 'P1303', 'Q80284']
ASK WHERE { resource:Q3290042 property:P1303 ?u . VALUES ( ?u ) { ( resource:Q80284 ) ( resource:Q46185 ) ( resource:Q80019 ) } }
Marco Amenta
action is_in
entity prev_answer
action find
entity Marco Amenta
relation instrument
['Marco Amenta', 'instrument', 'piano'] ['Marco Amenta', 'instrument', 'harpsichord'] ['Marco Amenta', 'instrument', 'viola']
ASK WHERE { resource:Marco_Amenta property:instrument ?u . VALUES ( ?u ) { ( resource:viola ) ( resource:bass_guitar ) ( resource:double_bass ) } }
[]
common name
SYSTEM
NO
(Q3290042,P1303,Q5994) (Q3290042,P1303,Q81982) (Q3290042,P1303,Q80284)
action is_in
entity prev_answer
action find
entity Q3290042
relation P1303
[ANSWER]
['Q3290042', 'P1303', 'Q5994'] ['Q3290042', 'P1303', 'Q81982'] ['Q3290042', 'P1303', 'Q80284']
ASK WHERE { resource:Q3290042 property:P1303 ?u . VALUES ( ?u ) { ( resource:Q80284 ) ( resource:Q46185 ) ( resource:Q80019 ) } }
No
action is_in
entity prev_answer
action find
entity Marco Amenta
relation instrument
['Marco Amenta', 'instrument', 'piano'] ['Marco Amenta', 'instrument', 'harpsichord'] ['Marco Amenta', 'instrument', 'viola']
ASK WHERE { resource:Marco_Amenta property:instrument ?u . VALUES ( ?u ) { ( resource:viola ) ( resource:bass_guitar ) ( resource:double_bass ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q34379 Q340169
USER
How many medias depict approximately 1 musical instrument ?
(c(Q340169),P180,c(Q34379))
action count
action approx
action find_tuple_counts
relation P180
type Q340169
type Q34379
value 1
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?d ) AS ?h ) WHERE { ?y property:P180 ?d . ?y rdf:type ontology:Q340169 . ?d rdf:type ontology:Q34379 } GROUP BY ?y } . FILTER ( ?h = 1 ) }
action count
action approx
action find_tuple_counts
relation depicts
type media
type musical instrument
value 1
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?d ) AS ?h ) WHERE { ?y property:depicts ?d . ?y rdf:type ontology:media . ?d rdf:type ontology:musical_instrument } GROUP BY ?y } . FILTER ( ?h = 1 ) }
[]
musical instrument media
SYSTEM
2
Q19868516 Q17519439
(c(Q340169),P180,c(Q34379))
action count
action approx
action find_tuple_counts
relation P180
type Q340169
type Q34379
value 1
[ANSWER]
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?d ) AS ?h ) WHERE { ?y property:P180 ?d . ?y rdf:type ontology:Q340169 . ?d rdf:type ontology:Q34379 } GROUP BY ?y } . FILTER ( ?h = 1 ) }
Violin Hanging on a Wall Achille Henri Victor Gouffé
2
action count
action approx
action find_tuple_counts
relation depicts
type media
type musical instrument
value 1
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?d ) AS ?h ) WHERE { ?y property:depicts ?d . ?y rdf:type ontology:media . ?d rdf:type ontology:musical_instrument } GROUP BY ?y } . FILTER ( ?h = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q980318
P1050
Q2057971
USER
Which health problem does Francisco Lameyer y Berenguer have ?
(Q980318,P1050,c(Q2057971))
action filter_type
action find
entity Q980318
relation P1050
type Q2057971
['Q980318', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?r WHERE { resource:Q980318 property:P1050 ?r . ?r rdf:type ontology:Q2057971 }
Francisco Lameyer y Berenguer
action filter_type
action find
entity Francisco Lameyer y Berenguer
relation medical condition
type health problem
['Francisco Lameyer y Berenguer', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?r WHERE { resource:Francisco_Lameyer_y_Berenguer property:medical_condition ?r . ?r rdf:type ontology:health_problem }
[]
health problem
Q12204
SYSTEM
tuberculosis
Q12204
(Q980318,P1050,c(Q2057971))
action filter_type
action find
entity Q980318
relation P1050
type Q2057971
Francisco Lameyer y Berenguer has [ANSWER]
['Q980318', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?r WHERE { resource:Q980318 property:P1050 ?r . ?r rdf:type ontology:Q2057971 }
tuberculosis
Francisco Lameyer y Berenguer has tuberculosis
tuberculosis
action filter_type
action find
entity Francisco Lameyer y Berenguer
relation medical condition
type health problem
['Francisco Lameyer y Berenguer', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?r WHERE { resource:Francisco_Lameyer_y_Berenguer property:medical_condition ?r . ?r rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12204
P1995
Q1047113
USER
What is the medical speciality of that health problem ?
(Q12204,P1995,c(Q1047113))
action filter_type
action find
entity Q12204
relation P1995
type Q1047113
['Q12204', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?x WHERE { resource:Q12204 property:P1995 ?x . ?x rdf:type ontology:Q1047113 }
tuberculosis
action filter_type
action find
entity tuberculosis
relation medical specialty
type special field
['tuberculosis', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?x WHERE { resource:tuberculosis property:medical_specialty ?x . ?x rdf:type ontology:special_field }
[]
special field
Q788926
SYSTEM
Infectious disease
Q788926
(Q12204,P1995,c(Q1047113))
action filter_type
action find
entity Q12204
relation P1995
type Q1047113
The medical speciality of that health problem is the [ANSWER]
['Q12204', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?x WHERE { resource:Q12204 property:P1995 ?x . ?x rdf:type ontology:Q1047113 }
Infectious disease
The medical speciality of that health problem is the Infectious disease
Infectious disease
action filter_type
action find
entity tuberculosis
relation medical specialty
type special field
['tuberculosis', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?x WHERE { resource:tuberculosis property:medical_specialty ?x . ?x rdf:type ontology:special_field }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5994
P1303
Q874405 Q11019
USER
How many social groups and machines can play piano ?
(c(Q874405),P1303,Q5994) (c(Q11019),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q874405
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q11019
[{'concept': 'Q874405'}, 'P1303', 'Q5994'] [{'concept': 'Q11019'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { ?v property:P1303 resource:Q5994 . ?v rdf:type ontology:Q11019 } UNION { ?v property:P1303 resource:Q5994 . ?v rdf:type ontology:Q874405 } }
piano
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type social group
action filter_type
action find_reverse
entity piano
relation instrument
type machine
[{'concept': 'social group'}, 'instrument', 'piano'] [{'concept': 'machine'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { ?v property:instrument resource:piano . ?v rdf:type ontology:machine } UNION { ?v property:instrument resource:piano . ?v rdf:type ontology:social_group } }
[]
social group machine
SYSTEM
1 social groups and 1 machines
Q16330882 Q3197402
(c(Q874405),P1303,Q5994) (c(Q11019),P1303,Q5994)
action count
action union
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q874405
action filter_type
action find_reverse
entity Q5994
relation P1303
type Q11019
[ANSWER]
[{'concept': 'Q874405'}, 'P1303', 'Q5994'] [{'concept': 'Q11019'}, 'P1303', 'Q5994']
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { ?v property:P1303 resource:Q5994 . ?v rdf:type ontology:Q11019 } UNION { ?v property:P1303 resource:Q5994 . ?v rdf:type ontology:Q874405 } }
Crystallia Kirkman family
1 social groups and 1 machines
action count
action union
action filter_type
action find_reverse
entity piano
relation instrument
type social group
action filter_type
action find_reverse
entity piano
relation instrument
type machine
[{'concept': 'social group'}, 'instrument', 'piano'] [{'concept': 'machine'}, 'instrument', 'piano']
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { ?v property:instrument resource:piano . ?v rdf:type ontology:machine } UNION { ?v property:instrument resource:piano . ?v rdf:type ontology:social_group } }
[]