Simple Question (Direct)
Simple Question
Q20656731
P166
Q2003221
USER
What was received by Alan Brown ?
(Q20656731,P166,c(Q2003221))
action filter_type
action find
entity Q20656731
relation P166
type Q2003221
['Q20656731', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?r WHERE { resource:Q20656731 property:P166 ?r . ?r rdf:type ontology:Q2003221 }
Alan Brown
action filter_type
action find
entity Alan Brown
relation award received
type chivalric order
['Alan Brown', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?r WHERE { resource:Alan_Brown property:award_received ?r . ?r rdf:type ontology:chivalric_order }
[]
chivalric order
Q12201477
SYSTEM
Commander of the Order of the British Empire
Q12201477
(Q20656731,P166,c(Q2003221))
action filter_type
action find
entity Q20656731
relation P166
type Q2003221
The [ANSWER] was received by Alan Brown
['Q20656731', 'P166', {'concept': 'Q2003221'}]
SELECT DISTINCT ?r WHERE { resource:Q20656731 property:P166 ?r . ?r rdf:type ontology:Q2003221 }
Commander of the Order of the British Empire
The Commander of the Order of the British Empire was received by Alan Brown
Commander of the Order of the British Empire
action filter_type
action find
entity Alan Brown
relation award received
type chivalric order
['Alan Brown', 'award received', {'concept': 'chivalric order'}]
SELECT DISTINCT ?r WHERE { resource:Alan_Brown property:award_received ?r . ?r rdf:type ontology:chivalric_order }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20656731
P410
Q4189293
USER
What is the title conferred upon Alan Brown ?
(Q20656731,P410,c(Q4189293))
action filter_type
action find
entity Q20656731
relation P410
type Q4189293
['Q20656731', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { resource:Q20656731 property:P410 ?s . ?s rdf:type ontology:Q4189293 }
Alan Brown
action filter_type
action find
entity Alan Brown
relation military rank
type title
['Alan Brown', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { resource:Alan_Brown property:military_rank ?s . ?s rdf:type ontology:title }
[]
title
Q4967182
SYSTEM
brigadier
Q4967182
(Q20656731,P410,c(Q4189293))
action filter_type
action find
entity Q20656731
relation P410
type Q4189293
The title conferred upon Alan Brown is a [ANSWER]
['Q20656731', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { resource:Q20656731 property:P410 ?s . ?s rdf:type ontology:Q4189293 }
brigadier
The title conferred upon Alan Brown is a brigadier
brigadier
action filter_type
action find
entity Alan Brown
relation military rank
type title
['Alan Brown', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { resource:Alan_Brown property:military_rank ?s . ?s rdf:type ontology:title }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1763603
Q4189293
USER
And what about Maurice Buckmaster?
(Q1763603,P410,c(Q4189293))
action filter_type
action find
entity Q1763603
relation P410
type Q4189293
['Q1763603', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q4189293 . resource:Q1763603 property:P410 ?a }
Maurice Buckmaster
action filter_type
action find
entity Maurice Buckmaster
relation military rank
type title
['Maurice Buckmaster', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:title . resource:Maurice_Buckmaster property:military_rank ?a }
[]
title
Q12799162
SYSTEM
colonel
Q12799162
(Q1763603,P410,c(Q4189293))
action filter_type
action find
entity Q1763603
relation P410
type Q4189293
[ANSWER]
['Q1763603', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q4189293 . resource:Q1763603 property:P410 ?a }
colonel
colonel
action filter_type
action find
entity Maurice Buckmaster
relation military rank
type title
['Maurice Buckmaster', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:title . resource:Maurice_Buckmaster property:military_rank ?a }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can max number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P1303 ?a . ?q rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } } . { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?s = ?g ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:instrument ?a . ?q rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } } . { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?s = ?g ) }
[]
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
Max number of people can perform on [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P1303 ?a . ?q rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } } . { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?s = ?g ) }
piano
Max number of people can perform on piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?g ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:instrument ?a . ?q rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } } . { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?s ) WHERE { ?i property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?s = ?g ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q5994 Q16238755 Q301597
P61
Q502895
USER
Was that musical instrument invented or discovered by Rachel Marcus and Bartolomeo Cristofori ?
(Q5994,P61,Q16238755) (Q5994,P61,Q301597)
action is_in
entity Q5994
action intersection
action find_reverse
entity Q16238755
relation P61
action find_reverse
entity Q301597
relation P61
['Q5994', 'P61', 'Q16238755'] ['Q5994', 'P61', 'Q301597']
ASK WHERE { resource:Q5994 property:P61 resource:Q16238755 . resource:Q5994 property:P61 resource:Q301597 }
piano Rachel Marcus Bartolomeo Cristofori
action is_in
entity piano
action intersection
action find_reverse
entity Rachel Marcus
relation discoverer or inventor
action find_reverse
entity Bartolomeo Cristofori
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Rachel Marcus'] ['piano', 'discoverer or inventor', 'Bartolomeo Cristofori']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Rachel_Marcus . resource:piano property:discoverer_or_inventor resource:Bartolomeo_Cristofori }
[]
common name
SYSTEM
NO and YES respectively
(Q5994,P61,Q16238755) (Q5994,P61,Q301597)
action is_in
entity Q5994
action intersection
action find_reverse
entity Q16238755
relation P61
action find_reverse
entity Q301597
relation P61
[ANSWER]
['Q5994', 'P61', 'Q16238755'] ['Q5994', 'P61', 'Q301597']
ASK WHERE { resource:Q5994 property:P61 resource:Q16238755 . resource:Q5994 property:P61 resource:Q301597 }
NO and YES respectively
action is_in
entity piano
action intersection
action find_reverse
entity Rachel Marcus
relation discoverer or inventor
action find_reverse
entity Bartolomeo Cristofori
relation discoverer or inventor
['piano', 'discoverer or inventor', 'Rachel Marcus'] ['piano', 'discoverer or inventor', 'Bartolomeo Cristofori']
ASK WHERE { resource:piano property:discoverer_or_inventor resource:Rachel_Marcus . resource:piano property:discoverer_or_inventor resource:Bartolomeo_Cristofori }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5994
P106
Q502895
USER
Which person has that musical instrument as his/her means of employment ?
action filter_type
action find_reverse
entity Q5994
relation P106
type Q502895
SELECT DISTINCT ?c WHERE { ?c property:P106 resource:Q5994 . ?c rdf:type ontology:Q502895 }
piano
action filter_type
action find_reverse
entity piano
relation occupation
type common name
SELECT DISTINCT ?c WHERE { ?c property:occupation resource:piano . ?c rdf:type ontology:common_name }
[]
common name
Q12261098
SYSTEM
Judith Jauregi
Q12261098
action filter_type
action find_reverse
entity Q5994
relation P106
type Q502895
[ANSWER] has that musical instrument as his/her means of employment
SELECT DISTINCT ?c WHERE { ?c property:P106 resource:Q5994 . ?c rdf:type ontology:Q502895 }
Judith Jauregi
Judith Jauregi has that musical instrument as his/her means of employment
Judith Jauregi
action filter_type
action find_reverse
entity piano
relation occupation
type common name
SELECT DISTINCT ?c WHERE { ?c property:occupation resource:piano . ?c rdf:type ontology:common_name }
[]