Simple Question (Direct)
Simple Question
Q323037
P21
Q290
USER
What is the sex of Malte Grashoff ?
(Q323037,P21,c(Q290))
action filter_type
action find
entity Q323037
relation P21
type Q290
['Q323037', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q323037 property:P21 ?e . ?e rdf:type ontology:Q290 }
Malte Grashoff
action filter_type
action find
entity Malte Grashoff
relation gender
type sex
['Malte Grashoff', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Malte_Grashoff property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q323037,P21,c(Q290))
action filter_type
action find
entity Q323037
relation P21
type Q290
The sex of Malte Grashoff is the [ANSWER]
['Q323037', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q323037 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of Malte Grashoff is the male
male
action filter_type
action find
entity Malte Grashoff
relation gender
type sex
['Malte Grashoff', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Malte_Grashoff property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q323037
P27
Q1048835
USER
Which political territory does Malte Grashoff belong to ?
(Q323037,P27,c(Q1048835))
action filter_type
action find
entity Q323037
relation P27
type Q1048835
['Q323037', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1048835 . resource:Q323037 property:P27 ?w }
Malte Grashoff
action filter_type
action find
entity Malte Grashoff
relation country of citizenship
type political territorial entity
['Malte Grashoff', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:political_territorial_entity . resource:Malte_Grashoff property:country_of_citizenship ?w }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q323037,P27,c(Q1048835))
action filter_type
action find
entity Q323037
relation P27
type Q1048835
Malte Grashoff belongs to [ANSWER]
['Q323037', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1048835 . resource:Q323037 property:P27 ?w }
Germany
Malte Grashoff belongs to Germany
Germany
action filter_type
action find
entity Malte Grashoff
relation country of citizenship
type political territorial entity
['Malte Grashoff', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:political_territorial_entity . resource:Malte_Grashoff property:country_of_citizenship ?w }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P137
Q811979 Q170584
USER
How many architectural structures and projects are the administrator of that political territory ?
(c(Q811979),P137,Q183) (c(Q170584),P137,Q183) (c(Q811979),P137,Q183) (c(Q170584),P137,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P137
type Q811979
action filter_type
action find_reverse
entity Q183
relation P137
type Q170584
[{'concept': 'Q811979'}, 'P137', 'Q183'] [{'concept': 'Q170584'}, 'P137', 'Q183'] [{'concept': 'Q811979'}, 'P137', 'Q183'] [{'concept': 'Q170584'}, 'P137', 'Q183']
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { ?x property:P137 resource:Q183 . ?x rdf:type ontology:Q811979 } UNION { ?x property:P137 resource:Q183 . ?x rdf:type ontology:Q170584 } }
action count
action union
action filter_type
action find_reverse
entity Germany
relation operator
type architectural structure
action filter_type
action find_reverse
entity Germany
relation operator
type project
[{'concept': 'architectural structure'}, 'operator', 'Germany'] [{'concept': 'project'}, 'operator', 'Germany'] [{'concept': 'architectural structure'}, 'operator', 'Germany'] [{'concept': 'project'}, 'operator', 'Germany']
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { ?x property:operator resource:Germany . ?x rdf:type ontology:architectural_structure } UNION { ?x property:operator resource:Germany . ?x rdf:type ontology:project } }
[]
architectural structure project
SYSTEM
3 architectural structures and 1 projects
Q20873909 Q25451942 Q700996 Q1202240
(c(Q811979),P137,Q183) (c(Q170584),P137,Q183) (c(Q811979),P137,Q183) (c(Q170584),P137,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P137
type Q811979
action filter_type
action find_reverse
entity Q183
relation P137
type Q170584
[ANSWER]
[{'concept': 'Q811979'}, 'P137', 'Q183'] [{'concept': 'Q170584'}, 'P137', 'Q183'] [{'concept': 'Q811979'}, 'P137', 'Q183'] [{'concept': 'Q170584'}, 'P137', 'Q183']
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { ?x property:P137 resource:Q183 . ?x rdf:type ontology:Q811979 } UNION { ?x property:P137 resource:Q183 . ?x rdf:type ontology:Q170584 } }
Embassy of Germany, Maputo Embassy of Germany, Helsinki Stuttgart 21 Embassy of Germany, Stockholm
3 architectural structures and 1 projects
action count
action union
action filter_type
action find_reverse
entity Germany
relation operator
type architectural structure
action filter_type
action find_reverse
entity Germany
relation operator
type project
[{'concept': 'architectural structure'}, 'operator', 'Germany'] [{'concept': 'project'}, 'operator', 'Germany'] [{'concept': 'architectural structure'}, 'operator', 'Germany'] [{'concept': 'project'}, 'operator', 'Germany']
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { ?x property:operator resource:Germany . ?x rdf:type ontology:architectural_structure } UNION { ?x property:operator resource:Germany . ?x rdf:type ontology:project } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P6
Q502895
USER
Which people are the head of government of Germany ?
(Q183,P6,c(Q502895))
action filter_type
action find
entity Q183
relation P6
type Q502895
['Q183', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q183 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Germany
action filter_type
action find
entity Germany
relation head of government
type common name
['Germany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Germany property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q2492 Q2514 Q567
SYSTEM
Konrad Adenauer, Willy Brandt, Angela Merkel
Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q567
(Q183,P6,c(Q502895))
action filter_type
action find
entity Q183
relation P6
type Q502895
Germany [ANSWERS] are the head of government of Germany
['Q183', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q183 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Angela Merkel
Germany Konrad Adenauer, Willy Brandt and Angela Merkel are the head of government of Germany
Konrad Adenauer Willy Brandt Angela Merkel
action filter_type
action find
entity Germany
relation head of government
type common name
['Germany', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Germany property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P532
Q2235308
USER
What is the registry port of Germany ?
(c(Q2235308),P532,Q183)
action filter_type
action find_reverse
entity Q183
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P532 resource:Q183 . ?i rdf:type ontology:Q2235308 }
Germany
action filter_type
action find_reverse
entity Germany
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:port_of_registry resource:Germany . ?i rdf:type ontology:ship_type }
[]
ship type
Q469715
SYSTEM
MV Colombo Express
Q469715
(c(Q2235308),P532,Q183)
action filter_type
action find_reverse
entity Q183
relation P532
type Q2235308
The registry port of Germany is the [ANSWER]
[{'concept': 'Q2235308'}, 'P532', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P532 resource:Q183 . ?i rdf:type ontology:Q2235308 }
MV Colombo Express
The registry port of Germany is the MV Colombo Express
MV Colombo Express
action filter_type
action find_reverse
entity Germany
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:port_of_registry resource:Germany . ?i rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P937
Q502895
USER
Who have Germany as their work location ?
(c(Q502895),P937,Q183)
action filter_type
action find_reverse
entity Q183
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q183']
SELECT DISTINCT ?h WHERE { ?h property:P937 resource:Q183 . ?h rdf:type ontology:Q502895 }
Germany
action filter_type
action find_reverse
entity Germany
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Germany']
SELECT DISTINCT ?h WHERE { ?h property:work_location resource:Germany . ?h rdf:type ontology:common_name }
[]
common name
Q442048 Q698102 Q325922
SYSTEM
Snježana Kordić, William Patrick Stuart-Houston, Hans Aarsman
Q442048 Q20890576 Q698102 Q325922 Q18516466
(c(Q502895),P937,Q183)
action filter_type
action find_reverse
entity Q183
relation P937
type Q502895
[ANSWERS] have Germany as their work location
[{'concept': 'Q502895'}, 'P937', 'Q183']
SELECT DISTINCT ?h WHERE { ?h property:P937 resource:Q183 . ?h rdf:type ontology:Q502895 }
Snježana Kordić Roman Lipski William Patrick Stuart-Houston Hans Aarsman Clement de Jonghe
Snježana Kordić, William Patrick Stuart-Houston and Hans Aarsman have Germany as their work location
Snježana Kordić William Patrick Stuart-Houston Hans Aarsman
action filter_type
action find_reverse
entity Germany
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Germany']
SELECT DISTINCT ?h WHERE { ?h property:work_location resource:Germany . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q442048 Q698102 Q325922
P21
Q290
USER
Which sexes do those people possess ?
(Q442048,P21,c(Q290)) (Q698102,P21,c(Q290)) (Q325922,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q442048', 'P21', {'concept': 'Q290'}] ['Q698102', 'P21', {'concept': 'Q290'}] ['Q325922', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?b property:P21 ?t . VALUES ( ?b ) { ( resource:Q442048 ) ( resource:Q20890576 ) ( resource:Q698102 ) } . ?t rdf:type ontology:Q290 }
Snježana Kordić William Patrick Stuart-Houston Hans Aarsman
action filter_type
action find
entity prev_answer
relation gender
type sex
['Snježana Kordić', 'gender', {'concept': 'sex'}] ['William Patrick Stuart-Houston', 'gender', {'concept': 'sex'}] ['Hans Aarsman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?b property:gender ?t . VALUES ( ?b ) { ( resource:Snježana_Kordić ) ( resource:Roman_Lipski ) ( resource:William_Patrick_Stuart-Houston ) } . ?t rdf:type ontology:sex }
[]
sex
Q6581072 Q6581097 Q6581097
SYSTEM
male for 2nd, 3rd, female for 1st
Q6581072 Q6581097 Q6581097
(Q442048,P21,c(Q290)) (Q698102,P21,c(Q290)) (Q325922,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q442048', 'P21', {'concept': 'Q290'}] ['Q698102', 'P21', {'concept': 'Q290'}] ['Q325922', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?b property:P21 ?t . VALUES ( ?b ) { ( resource:Q442048 ) ( resource:Q20890576 ) ( resource:Q698102 ) } . ?t rdf:type ontology:Q290 }
female male male
Those people possess a female, male and male
female male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Snježana Kordić', 'gender', {'concept': 'sex'}] ['William Patrick Stuart-Houston', 'gender', {'concept': 'sex'}] ['Hans Aarsman', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?b property:gender ?t . VALUES ( ?b ) { ( resource:Snježana_Kordić ) ( resource:Roman_Lipski ) ( resource:William_Patrick_Stuart-Houston ) } . ?t rdf:type ontology:sex }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6581097
P106
Q502895
USER
Which person has that sex as his/her means of employment ?
(c(Q502895),P106,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q6581097']
SELECT DISTINCT ?j WHERE { ?j property:P106 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male']
SELECT DISTINCT ?j WHERE { ?j property:occupation resource:male . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q6581072
SYSTEM
Did you mean female ?
Q6581072 Q6581097 Q6581097
(c(Q502895),P106,Q6581072) (c(Q502895),P106,Q6581097) (c(Q502895),P106,Q6581097)
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q6581072'] [{'concept': 'Q502895'}, 'P106', 'Q6581097'] [{'concept': 'Q502895'}, 'P106', 'Q6581097']
SELECT DISTINCT ?j WHERE { ?j property:P106 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
female male male
Did you mean female ?
female
[{'concept': 'common name'}, 'occupation', 'female'] [{'concept': 'common name'}, 'occupation', 'male'] [{'concept': 'common name'}, 'occupation', 'male']
SELECT DISTINCT ?j WHERE { ?j property:occupation resource:male . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant male. Could you tell me the answer for that?
(c(Q502895),P106,Q6581097)
Q6581097
[{'concept': 'Q502895'}, 'P106', 'Q6581097']
[{'concept': 'common name'}, 'occupation', 'male']
[]
Q24877298
SYSTEM
Antonín Straka
Q24877298
(c(Q502895),P106,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
[ANSWER] has that sex as his/her means of employment
[{'concept': 'Q502895'}, 'P106', 'Q6581097']
SELECT DISTINCT ?j WHERE { ?j property:P106 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
Antonín Straka
Antonín Straka has that sex as his/her means of employment
Antonín Straka
action filter_type
action find_reverse
entity male
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'male']
SELECT DISTINCT ?j WHERE { ?j property:occupation resource:male . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2514
P991
Q40231
USER
Which election had Willy Brandt as its successful candidate ?
(c(Q40231),P991,Q2514)
action filter_type
action find_reverse
entity Q2514
relation P991
type Q40231
[{'concept': 'Q40231'}, 'P991', 'Q2514']
SELECT DISTINCT ?s WHERE { ?s property:P991 resource:Q2514 . ?s rdf:type ontology:Q40231 }
Willy Brandt
action filter_type
action find_reverse
entity Willy Brandt
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Willy Brandt']
SELECT DISTINCT ?s WHERE { ?s property:successful_candidate resource:Willy_Brandt . ?s rdf:type ontology:election }
[]
election
Q701799
SYSTEM
West German federal election 1972
Q701799
(c(Q40231),P991,Q2514)
action filter_type
action find_reverse
entity Q2514
relation P991
type Q40231
[ANSWER] had Willy Brandt as its successful candidate
[{'concept': 'Q40231'}, 'P991', 'Q2514']
SELECT DISTINCT ?s WHERE { ?s property:P991 resource:Q2514 . ?s rdf:type ontology:Q40231 }
West German federal election 1972
West German federal election 1972 had Willy Brandt as its successful candidate
West German federal election 1972
action filter_type
action find_reverse
entity Willy Brandt
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Willy Brandt']
SELECT DISTINCT ?s WHERE { ?s property:successful_candidate resource:Willy_Brandt . ?s rdf:type ontology:election }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2514
P40
Q502895
USER
Which person has that one as an offspring ?
(c(Q502895),P40,Q701799)
action filter_type
action find_reverse
entity Q2514
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q701799']
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q2514 . ?i rdf:type ontology:Q502895 }
Willy Brandt
action filter_type
action find_reverse
entity Willy Brandt
relation child
type common name
[{'concept': 'common name'}, 'child', 'West German federal election 1972']
SELECT DISTINCT ?i WHERE { ?i property:child resource:Willy_Brandt . ?i rdf:type ontology:common_name }
[]
common name
Q1903042
SYSTEM
Martha Frahm
Q1903042
(c(Q502895),P40,Q701799)
action filter_type
action find_reverse
entity Q2514
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q701799']
SELECT DISTINCT ?i WHERE { ?i property:P40 resource:Q2514 . ?i rdf:type ontology:Q502895 }
Martha Frahm
Martha Frahm has that one as an offspring
Martha Frahm
action filter_type
action find_reverse
entity Willy Brandt
relation child
type common name
[{'concept': 'common name'}, 'child', 'West German federal election 1972']
SELECT DISTINCT ?i WHERE { ?i property:child resource:Willy_Brandt . ?i rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can exactly 3 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?r = 3 ) }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?r = 3 ) }
[]
musical instrument common name
SYSTEM
2
Q626035 Q726306
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?i } . FILTER ( ?r = 3 ) }
glockenspiel erhu
2
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?r ) WHERE { ?n property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?i } . FILTER ( ?r = 3 ) }
[]