Simple Question (Direct)
Simple Question
Q5077407
P7
Q502895
USER
Who have Charles Eric Hambro as their sibling ?
(Q5077407,P7,c(Q502895))
action filter_type
action find
entity Q5077407
relation P7
type Q502895
['Q5077407', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q5077407 property:P7 ?w . ?w rdf:type ontology:Q502895 }
Charles Eric Hambro
action filter_type
action find
entity Charles Eric Hambro
relation brother
type common name
['Charles Eric Hambro', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Charles_Eric_Hambro property:brother ?w . ?w rdf:type ontology:common_name }
[]
common name
Q18716014 Q4764262
SYSTEM
Olaf Hambro, Angus Valdemar Hambro
Q18716014 Q4764262
(Q5077407,P7,c(Q502895))
action filter_type
action find
entity Q5077407
relation P7
type Q502895
[ANSWERS] have Charles Eric Hambro as their sibling
['Q5077407', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q5077407 property:P7 ?w . ?w rdf:type ontology:Q502895 }
Olaf Hambro Angus Valdemar Hambro
Olaf Hambro and Angus Valdemar Hambro have Charles Eric Hambro as their sibling
Olaf Hambro Angus Valdemar Hambro
action filter_type
action find
entity Charles Eric Hambro
relation brother
type common name
['Charles Eric Hambro', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Charles_Eric_Hambro property:brother ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5077407
P40
Q502895
USER
Which person has Charles Eric Hambro as a child ?
(c(Q502895),P40,Q5077407)
action filter_type
action find_reverse
entity Q5077407
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q5077407']
SELECT DISTINCT ?n WHERE { ?n property:P40 resource:Q5077407 . ?n rdf:type ontology:Q502895 }
Charles Eric Hambro
action filter_type
action find_reverse
entity Charles Eric Hambro
relation child
type common name
[{'concept': 'common name'}, 'child', 'Charles Eric Hambro']
SELECT DISTINCT ?n WHERE { ?n property:child resource:Charles_Eric_Hambro . ?n rdf:type ontology:common_name }
[]
common name
Q18681478
SYSTEM
Everard Hambro
Q18681478
(c(Q502895),P40,Q5077407)
action filter_type
action find_reverse
entity Q5077407
relation P40
type Q502895
[ANSWER] has Charles Eric Hambro as a child
[{'concept': 'Q502895'}, 'P40', 'Q5077407']
SELECT DISTINCT ?n WHERE { ?n property:P40 resource:Q5077407 . ?n rdf:type ontology:Q502895 }
Everard Hambro
Everard Hambro has Charles Eric Hambro as a child
Everard Hambro
action filter_type
action find_reverse
entity Charles Eric Hambro
relation child
type common name
[{'concept': 'common name'}, 'child', 'Charles Eric Hambro']
SELECT DISTINCT ?n WHERE { ?n property:child resource:Charles_Eric_Hambro . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5077407
P22
Q502895
USER
Which male person has a child named Charles Eric Hambro ?
(Q5077407,P22,c(Q502895))
action filter_type
action find
entity Q5077407
relation P22
type Q502895
['Q5077407', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q5077407 property:P22 ?b . ?b rdf:type ontology:Q502895 }
Charles Eric Hambro
action filter_type
action find
entity Charles Eric Hambro
relation father
type common name
['Charles Eric Hambro', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Charles_Eric_Hambro property:father ?b . ?b rdf:type ontology:common_name }
[]
common name
Q18681478
SYSTEM
Everard Hambro
Q18681478
(Q5077407,P22,c(Q502895))
action filter_type
action find
entity Q5077407
relation P22
type Q502895
And [ANSWER] has a child named Charles Eric Hambro
['Q5077407', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q5077407 property:P22 ?b . ?b rdf:type ontology:Q502895 }
Everard Hambro
And Everard Hambro has a child named Charles Eric Hambro
Everard Hambro
action filter_type
action find
entity Charles Eric Hambro
relation father
type common name
['Charles Eric Hambro', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Charles_Eric_Hambro property:father ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18681478
P21
Q290
USER
Which sex does that person have ?
(Q18681478,P21,c(Q290))
action filter_type
action find
entity Q18681478
relation P21
type Q290
['Q18681478', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q18681478 property:P21 ?r . ?r rdf:type ontology:Q290 }
Everard Hambro
action filter_type
action find
entity Everard Hambro
relation gender
type sex
['Everard Hambro', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Everard_Hambro property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18681478,P21,c(Q290))
action filter_type
action find
entity Q18681478
relation P21
type Q290
That person has a [ANSWER]
['Q18681478', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q18681478 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Everard Hambro
relation gender
type sex
['Everard Hambro', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Everard_Hambro property:gender ?r . ?r rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do approximately 1654 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1654
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?n = 1654 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1654
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?n = 1654 ) }
[]
musical instrument common name
SYSTEM
8
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1654
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P1303 ?y . ?y rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?y } . FILTER ( ?n = 1654 ) }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
8
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1654
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:instrument ?y . ?y rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?y } . FILTER ( ?n = 1654 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5077407
P69
Q3914 Q41176
USER
How many schools and buildings were Charles Eric Hambro educated ?
(Q5077407,P69,c(Q3914)) (Q5077407,P69,c(Q41176))
action count
action union
action filter_type
action find
entity Q5077407
relation P69
type Q3914
action filter_type
action find
entity Q5077407
relation P69
type Q41176
['Q5077407', 'P69', {'concept': 'Q3914'}] ['Q5077407', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { ?m rdf:type ?c . VALUES ( ?c ) { ( ontology:Q3914 ) ( ontology:Q41176 ) } }
Charles Eric Hambro
action count
action union
action filter_type
action find
entity Charles Eric Hambro
relation educated at
type school
action filter_type
action find
entity Charles Eric Hambro
relation educated at
type building
['Charles Eric Hambro', 'educated at', {'concept': 'school'}] ['Charles Eric Hambro', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { ?m rdf:type ?c . VALUES ( ?c ) { ( ontology:school ) ( ontology:building ) } }
[]
school building
SYSTEM
1 schools and 1 buildings
Q192088 Q332342
(Q5077407,P69,c(Q3914)) (Q5077407,P69,c(Q41176))
action count
action union
action filter_type
action find
entity Q5077407
relation P69
type Q3914
action filter_type
action find
entity Q5077407
relation P69
type Q41176
[ANSWER]
['Q5077407', 'P69', {'concept': 'Q3914'}] ['Q5077407', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { ?m rdf:type ?c . VALUES ( ?c ) { ( ontology:Q3914 ) ( ontology:Q41176 ) } }
Eton College Trinity College, Cambridge
1 schools and 1 buildings
action count
action union
action filter_type
action find
entity Charles Eric Hambro
relation educated at
type school
action filter_type
action find
entity Charles Eric Hambro
relation educated at
type building
['Charles Eric Hambro', 'educated at', {'concept': 'school'}] ['Charles Eric Hambro', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { ?m rdf:type ?c . VALUES ( ?c ) { ( ontology:school ) ( ontology:building ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q18716014
P40
Q502895
USER
How many people have Olaf Hambro as a child ?
(c(Q502895),P40,Q18716014)
action count
action filter_type
action find_reverse
entity Q18716014
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q18716014']
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:P40 resource:Q18716014 . ?o rdf:type ontology:Q502895 }
Olaf Hambro
action count
action filter_type
action find_reverse
entity Olaf Hambro
relation child
type common name
[{'concept': 'common name'}, 'child', 'Olaf Hambro']
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:child resource:Olaf_Hambro . ?o rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q18681478
(c(Q502895),P40,Q18716014)
action count
action filter_type
action find_reverse
entity Q18716014
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q18716014']
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:P40 resource:Q18716014 . ?o rdf:type ontology:Q502895 }
Everard Hambro
1
action count
action filter_type
action find_reverse
entity Olaf Hambro
relation child
type common name
[{'concept': 'common name'}, 'child', 'Olaf Hambro']
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { ?o property:child resource:Olaf_Hambro . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q750520
P40
Q502895
USER
And also tell me about Astrid Ahnfelt?
(c(Q502895),P40,Q750520)
action count
action filter_type
action find_reverse
entity Q750520
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q750520']
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P40 resource:Q750520 . ?o rdf:type ontology:Q502895 }
Astrid Ahnfelt
action count
action filter_type
action find_reverse
entity Astrid Ahnfelt
relation child
type common name
[{'concept': 'common name'}, 'child', 'Astrid Ahnfelt']
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:child resource:Astrid_Ahnfelt . ?o rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q717126
(c(Q502895),P40,Q750520)
action count
action filter_type
action find_reverse
entity Q750520
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q750520']
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:P40 resource:Q750520 . ?o rdf:type ontology:Q502895 }
Arvid Ahnfelt
1
action count
action filter_type
action find_reverse
entity Astrid Ahnfelt
relation child
type common name
[{'concept': 'common name'}, 'child', 'Astrid Ahnfelt']
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { ?o property:child resource:Astrid_Ahnfelt . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q750520
P106
Q12737077
USER
What does that person do for a living ?
action filter_type
action find
entity Q750520
relation P106
type Q12737077
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q750520 property:P106 ?w }
Astrid Ahnfelt
action filter_type
action find
entity Astrid Ahnfelt
relation occupation
type occupation
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Astrid_Ahnfelt property:occupation ?w }
[]
occupation
Q36180
SYSTEM
writer
Q36180
action filter_type
action find
entity Q750520
relation P106
type Q12737077
[ANSWER] that person does for a living
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q750520 property:P106 ?w }
writer
Writer that person does for a living
writer
action filter_type
action find
entity Astrid Ahnfelt
relation occupation
type occupation
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Astrid_Ahnfelt property:occupation ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36180
P425
Q1914636
USER
Which activity has that one as the associated field of occupation ?
(Q36180,P425,c(Q1914636))
action filter_type
action find
entity Q36180
relation P425
type Q1914636
['Q36180', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?x WHERE { resource:Q36180 property:P425 ?x . ?x rdf:type ontology:Q1914636 }
writer
action filter_type
action find
entity writer
relation field of this occupation
type activity
['writer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?x WHERE { resource:writer property:field_of_this_occupation ?x . ?x rdf:type ontology:activity }
[]
activity
Q8242
SYSTEM
literature
Q8242
(Q36180,P425,c(Q1914636))
action filter_type
action find
entity Q36180
relation P425
type Q1914636
The [ANSWER] has that one as the associated field of occupation
['Q36180', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?x WHERE { resource:Q36180 property:P425 ?x . ?x rdf:type ontology:Q1914636 }
literature
The literature has that one as the associated field of occupation
literature
action filter_type
action find
entity writer
relation field of this occupation
type activity
['writer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?x WHERE { resource:writer property:field_of_this_occupation ?x . ?x rdf:type ontology:activity }
[]