Simple Question (Direct)
Simple Question
Q5405172
P21
Q290
USER
What is the sex of Francesc de Carreras ?
(Q5405172,P21,c(Q290))
action filter_type
action find
entity Q5405172
relation P21
type Q290
['Q5405172', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q5405172 property:P21 ?z }
Francesc de Carreras
action filter_type
action find
entity Francesc de Carreras
relation gender
type sex
['Francesc de Carreras', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Francesc_de_Carreras property:gender ?z }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5405172,P21,c(Q290))
action filter_type
action find
entity Q5405172
relation P21
type Q290
The sex of Francesc de Carreras is a [ANSWER]
['Q5405172', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q5405172 property:P21 ?z }
male
The sex of Francesc de Carreras is a male
male
action filter_type
action find
entity Francesc de Carreras
relation gender
type sex
['Francesc de Carreras', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Francesc_de_Carreras property:gender ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5405172
P463
Q122135
USER
Which organization was Francesc de Carreras a member of ?
(Q5405172,P463,c(Q122135))
action filter_type
action find
entity Q5405172
relation P463
type Q122135
['Q5405172', 'P463', {'concept': 'Q122135'}]
SELECT DISTINCT ?p WHERE { resource:Q5405172 property:P463 ?p . ?p rdf:type ontology:Q122135 }
Francesc de Carreras
action filter_type
action find
entity Francesc de Carreras
relation member of
type Academia de Ciencias
['Francesc de Carreras', 'member of', {'concept': 'Academia de Ciencias'}]
SELECT DISTINCT ?p WHERE { resource:Francesc_de_Carreras property:member_of ?p . ?p rdf:type ontology:Academia_de_Ciencias }
[]
Academia de Ciencias
Q840015
SYSTEM
Royal Academy of Moral and Political Sciences
Q840015
(Q5405172,P463,c(Q122135))
action filter_type
action find
entity Q5405172
relation P463
type Q122135
The [ANSWER] was Francesc de Carreras a member of
['Q5405172', 'P463', {'concept': 'Q122135'}]
SELECT DISTINCT ?p WHERE { resource:Q5405172 property:P463 ?p . ?p rdf:type ontology:Q122135 }
Royal Academy of Moral and Political Sciences
The Royal Academy of Moral and Political Sciences was Francesc de Carreras a member of
Royal Academy of Moral and Political Sciences
action filter_type
action find
entity Francesc de Carreras
relation member of
type Academia de Ciencias
['Francesc de Carreras', 'member of', {'concept': 'Academia de Ciencias'}]
SELECT DISTINCT ?p WHERE { resource:Francesc_de_Carreras property:member_of ?p . ?p rdf:type ontology:Academia_de_Ciencias }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21199222
Q122135
USER
And also tell me about Pablo Lucas Verdú?
(Q21199222,P463,c(Q122135))
action filter_type
action find
entity Q21199222
relation P463
type Q122135
['Q21199222', 'P463', {'concept': 'Q122135'}]
SELECT DISTINCT ?b WHERE { resource:Q21199222 property:P463 ?b . ?b rdf:type ontology:Q122135 }
Pablo Lucas Verdú
action filter_type
action find
entity Pablo Lucas Verdú
relation member of
type Academia de Ciencias
['Pablo Lucas Verdú', 'member of', {'concept': 'Academia de Ciencias'}]
SELECT DISTINCT ?b WHERE { resource:Pablo_Lucas_Verdú property:member_of ?b . ?b rdf:type ontology:Academia_de_Ciencias }
[]
Academia de Ciencias
Q840015
SYSTEM
Royal Academy of Moral and Political Sciences
Q840015
(Q21199222,P463,c(Q122135))
action filter_type
action find
entity Q21199222
relation P463
type Q122135
[ANSWER]
['Q21199222', 'P463', {'concept': 'Q122135'}]
SELECT DISTINCT ?b WHERE { resource:Q21199222 property:P463 ?b . ?b rdf:type ontology:Q122135 }
Royal Academy of Moral and Political Sciences
Royal Academy of Moral and Political Sciences
action filter_type
action find
entity Pablo Lucas Verdú
relation member of
type Academia de Ciencias
['Pablo Lucas Verdú', 'member of', {'concept': 'Academia de Ciencias'}]
SELECT DISTINCT ?b WHERE { resource:Pablo_Lucas_Verdú property:member_of ?b . ?b rdf:type ontology:Academia_de_Ciencias }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q840015 Q4867181
P463
Q502895
USER
Is Basil Hennessy a member of that Academia de Ciencias ?
(Q4867181,P463,Q840015)
action is_in
entity Q4867181
action find
entity Q840015
relation P463
['Q4867181', 'P463', 'Q840015']
ASK WHERE { resource:Q840015 property:P463 resource:Q4867181 }
Royal Academy of Moral and Political Sciences Basil Hennessy
action is_in
entity Basil Hennessy
action find
entity Royal Academy of Moral and Political Sciences
relation member of
['Basil Hennessy', 'member of', 'Royal Academy of Moral and Political Sciences']
ASK WHERE { resource:Royal_Academy_of_Moral_and_Political_Sciences property:member_of resource:Basil_Hennessy }
[]
common name
SYSTEM
NO
(Q4867181,P463,Q840015)
action is_in
entity Q4867181
action find
entity Q840015
relation P463
[ANSWER]
['Q4867181', 'P463', 'Q840015']
ASK WHERE { resource:Q840015 property:P463 resource:Q4867181 }
No
action is_in
entity Basil Hennessy
action find
entity Royal Academy of Moral and Political Sciences
relation member of
['Basil Hennessy', 'member of', 'Royal Academy of Moral and Political Sciences']
ASK WHERE { resource:Royal_Academy_of_Moral_and_Political_Sciences property:member_of resource:Basil_Hennessy }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by max number of people ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?m ) { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P1303 ?u . ?t rdf:type ontology:Q502895 . ?u rdf:type ontology:Q34379 } GROUP BY ?u } } . { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?d = ?m ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?m ) { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:instrument ?u . ?t rdf:type ontology:common_name . ?u rdf:type ontology:musical_instrument } GROUP BY ?u } } . { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?d = ?m ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWER] is played by max number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?m ) { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P1303 ?u . ?t rdf:type ontology:Q502895 . ?u rdf:type ontology:Q34379 } GROUP BY ?u } } . { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?d = ?m ) }
piano
Piano is played by max number of people
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?m ) { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:instrument ?u . ?t rdf:type ontology:common_name . ?u rdf:type ontology:musical_instrument } GROUP BY ?u } } . { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?d = ?m ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q5994 Q17402917
P1303
Q502895
USER
Does Syed Arif Hasan play that musical instrument ?
(Q17402917,P1303,Q5994)
action is_in
entity Q17402917
action find
entity Q5994
relation P1303
['Q17402917', 'P1303', 'Q5994']
ASK WHERE { resource:Q5994 property:P1303 resource:Q17402917 }
piano Syed Arif Hasan
action is_in
entity Syed Arif Hasan
action find
entity piano
relation instrument
['Syed Arif Hasan', 'instrument', 'piano']
ASK WHERE { resource:piano property:instrument resource:Syed_Arif_Hasan }
[]
common name
SYSTEM
NO
(Q17402917,P1303,Q5994)
action is_in
entity Q17402917
action find
entity Q5994
relation P1303
[ANSWER]
['Q17402917', 'P1303', 'Q5994']
ASK WHERE { resource:Q5994 property:P1303 resource:Q17402917 }
No
action is_in
entity Syed Arif Hasan
action find
entity piano
relation instrument
['Syed Arif Hasan', 'instrument', 'piano']
ASK WHERE { resource:piano property:instrument resource:Syed_Arif_Hasan }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1759986
P1303
Q34379 Q502895
USER
How many musical instruments can more number of people perform with than Wurlitzer electric piano ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1759986
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { resource:Q1759986 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?i > ?a ) }
Wurlitzer electric piano
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Wurlitzer electric piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { resource:Wurlitzer_electric_piano property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?i > ?a ) }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1759986
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { resource:Q1759986 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?i > ?a ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Wurlitzer electric piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { resource:Wurlitzer_electric_piano property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?i > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1343007
P1303
Q34379 Q502895
USER
And how about electronic keyboard?
(c(Q502895),P1303,c(Q34379))
action count
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 ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { ?a rdf:type ontology:Q34379 . resource:Q1343007 property:P1303 ?a } } . FILTER ( ?q > ?b ) }
electronic keyboard
action count
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 ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { ?a rdf:type ontology:musical_instrument . resource:electronic_keyboard property:instrument ?a } } . FILTER ( ?q > ?b ) }
[]
musical instrument common name
SYSTEM
9
Q80284 Q46185 Q80019 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
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
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { ?a rdf:type ontology:Q34379 . resource:Q1343007 property:P1303 ?a } } . FILTER ( ?q > ?b ) }
viola bass guitar double bass piano trumpet cello violin organ drum kit
9
action count
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 ( COUNT ( ?i ) AS ?h ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?q ) WHERE { ?z property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { ?a rdf:type ontology:musical_instrument . resource:electronic_keyboard property:instrument ?a } } . FILTER ( ?q > ?b ) }
[]