Simple Question (Direct)
Simple Question
Q19898260
P57
Q502895
USER
Who was the director of The Woman in the Cupboard ?
(Q19898260,P57,c(Q502895))
action filter_type
action find
entity Q19898260
relation P57
type Q502895
['Q19898260', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q19898260 property:P57 ?n . ?n rdf:type ontology:Q502895 }
The Woman in the Cupboard
action filter_type
action find
entity The Woman in the Cupboard
relation director
type common name
['The Woman in the Cupboard', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:The_Woman_in_the_Cupboard property:director ?n . ?n rdf:type ontology:common_name }
[]
common name
Q104866
SYSTEM
Rudolf Biebrach
Q104866
(Q19898260,P57,c(Q502895))
action filter_type
action find
entity Q19898260
relation P57
type Q502895
The director of The Woman in the Cupboard was the [ANSWER]
['Q19898260', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q19898260 property:P57 ?n . ?n rdf:type ontology:Q502895 }
Rudolf Biebrach
The director of The Woman in the Cupboard was the Rudolf Biebrach
Rudolf Biebrach
action filter_type
action find
entity The Woman in the Cupboard
relation director
type common name
['The Woman in the Cupboard', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:The_Woman_in_the_Cupboard property:director ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q104866
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q104866,P20,c(Q56061))
action filter_type
action find
entity Q104866
relation P20
type Q56061
['Q104866', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q104866 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Rudolf Biebrach
action filter_type
action find
entity Rudolf Biebrach
relation place of death
type administrative territorial entity
['Rudolf Biebrach', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Rudolf_Biebrach property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q104866,P20,c(Q56061))
action filter_type
action find
entity Q104866
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q104866', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q104866 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Berlin
The expiration of that person occurred in Berlin
Berlin
action filter_type
action find
entity Rudolf Biebrach
relation place of death
type administrative territorial entity
['Rudolf Biebrach', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Rudolf_Biebrach property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2150295 Q104866
P19 P20
Q515
USER
Which cities are the birthplace of Rudolf Biebrach and are the places of death of Richard Offenberg ?
AND((Q104866,P19,c(Q515)), (Q2150295,P20,c(Q515)))
action filter_type
action intersection
action find
entity Q104866
relation P19
action find
entity Q2150295
relation P20
type Q515
{'AND': [['Q104866', 'P19', {'concept': 'Q515'}], ['Q2150295', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q515 . resource:Q104866 property:P19 ?o . resource:Q2150295 property:P20 ?o }
Richard Offenberg Rudolf Biebrach
action filter_type
action intersection
action find
entity Rudolf Biebrach
relation place of birth
action find
entity Richard Offenberg
relation place of death
type city
{'AND': [['Rudolf Biebrach', 'place of birth', {'concept': 'city'}], ['Richard Offenberg', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:city . resource:Rudolf_Biebrach property:place_of_birth ?o . resource:Richard_Offenberg property:place_of_death ?o }
[]
city
Q2079
SYSTEM
Leipzig
Q2079
AND((Q104866,P19,c(Q515)), (Q2150295,P20,c(Q515)))
action filter_type
action intersection
action find
entity Q104866
relation P19
action find
entity Q2150295
relation P20
type Q515
[ANSWER] is the birthplace of Rudolf Biebrach and is the places of death of Richard Offenberg
{'AND': [['Q104866', 'P19', {'concept': 'Q515'}], ['Q2150295', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q515 . resource:Q104866 property:P19 ?o . resource:Q2150295 property:P20 ?o }
Leipzig
Leipzig is the birthplace of Rudolf Biebrach and is the places of death of Richard Offenberg
Leipzig
action filter_type
action intersection
action find
entity Rudolf Biebrach
relation place of birth
action find
entity Richard Offenberg
relation place of death
type city
{'AND': [['Rudolf Biebrach', 'place of birth', {'concept': 'city'}], ['Richard Offenberg', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:city . resource:Rudolf_Biebrach property:place_of_birth ?o . resource:Richard_Offenberg property:place_of_death ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2079 Q14960
P190
Q515
USER
Is Brno twin city of that one ?
(Q2079,P190,Q14960)
action is_in
entity Q14960
action find
entity Q2079
relation P190
['Q2079', 'P190', 'Q14960']
ASK WHERE { resource:Q2079 property:P190 resource:Q14960 }
Leipzig Brno
action is_in
entity Brno
action find
entity Leipzig
relation sister city
['Leipzig', 'sister city', 'Brno']
ASK WHERE { resource:Leipzig property:sister_city resource:Brno }
[]
city
SYSTEM
YES
(Q2079,P190,Q14960)
action is_in
entity Q14960
action find
entity Q2079
relation P190
[ANSWER]
['Q2079', 'P190', 'Q14960']
ASK WHERE { resource:Q2079 property:P190 resource:Q14960 }
Yes
action is_in
entity Brno
action find
entity Leipzig
relation sister city
['Leipzig', 'sister city', 'Brno']
ASK WHERE { resource:Leipzig property:sister_city resource:Brno }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q64 Q269
P190
Q56061
USER
Is Tashkent the sister city of Berlin ?
(Q64,P190,Q269)
action is_in
entity Q269
action find
entity Q64
relation P190
['Q64', 'P190', 'Q269']
ASK WHERE { resource:Q64 property:P190 resource:Q269 }
Berlin Tashkent
action is_in
entity Tashkent
action find
entity Berlin
relation sister city
['Berlin', 'sister city', 'Tashkent']
ASK WHERE { resource:Berlin property:sister_city resource:Tashkent }
[]
administrative territorial entity
SYSTEM
YES
(Q64,P190,Q269)
action is_in
entity Q269
action find
entity Q64
relation P190
[ANSWER]
['Q64', 'P190', 'Q269']
ASK WHERE { resource:Q64 property:P190 resource:Q269 }
Yes
action is_in
entity Tashkent
action find
entity Berlin
relation sister city
['Berlin', 'sister city', 'Tashkent']
ASK WHERE { resource:Berlin property:sister_city resource:Tashkent }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q64
P937
Q7275 Q2088357
USER
How many states and musical ensembles have Berlin as work location ?
(c(Q7275),P937,Q64) (c(Q2088357),P937,Q64)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P937
type Q7275
action filter_type
action find_reverse
entity Q64
relation P937
type Q2088357
[{'concept': 'Q7275'}, 'P937', 'Q64'] [{'concept': 'Q2088357'}, 'P937', 'Q64']
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { ?i property:P937 resource:Q64 . ?i rdf:type ontology:Q7275 } UNION { ?i property:P937 resource:Q64 . ?i rdf:type ontology:Q2088357 } }
Berlin
action count
action union
action filter_type
action find_reverse
entity Berlin
relation work location
type state
action filter_type
action find_reverse
entity Berlin
relation work location
type musical ensemble
[{'concept': 'state'}, 'work location', 'Berlin'] [{'concept': 'musical ensemble'}, 'work location', 'Berlin']
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { ?i property:work_location resource:Berlin . ?i rdf:type ontology:state } UNION { ?i property:work_location resource:Berlin . ?i rdf:type ontology:musical_ensemble } }
[]
state musical ensemble
SYSTEM
1 states and 1 musical ensembles
Q980 Q15835180
(c(Q7275),P937,Q64) (c(Q2088357),P937,Q64)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P937
type Q7275
action filter_type
action find_reverse
entity Q64
relation P937
type Q2088357
[ANSWER]
[{'concept': 'Q7275'}, 'P937', 'Q64'] [{'concept': 'Q2088357'}, 'P937', 'Q64']
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { ?i property:P937 resource:Q64 . ?i rdf:type ontology:Q7275 } UNION { ?i property:P937 resource:Q64 . ?i rdf:type ontology:Q2088357 } }
Bavaria Mighty Oaks
1 states and 1 musical ensembles
action count
action union
action filter_type
action find_reverse
entity Berlin
relation work location
type state
action filter_type
action find_reverse
entity Berlin
relation work location
type musical ensemble
[{'concept': 'state'}, 'work location', 'Berlin'] [{'concept': 'musical ensemble'}, 'work location', 'Berlin']
SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { { ?i property:work_location resource:Berlin . ?i rdf:type ontology:state } UNION { ?i property:work_location resource:Berlin . ?i rdf:type ontology:musical_ensemble } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q913075 Q2079
P19 P190
Q515
USER
Which cities are twin towns of Leipzig or are the birthplace of Brian Smith ?
OR((Q2079,P190,c(Q515)), (Q913075,P19,c(Q515)))
action filter_type
action union
action find
entity Q2079
relation P190
action find
entity Q913075
relation P19
type Q515
{'OR': [['Q2079', 'P190', {'concept': 'Q515'}], ['Q913075', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q2079 property:P190 ?n } UNION { resource:Q913075 property:P19 ?n } } . ?n rdf:type ontology:Q515 }
Brian Smith Leipzig
action filter_type
action union
action find
entity Leipzig
relation sister city
action find
entity Brian Smith
relation place of birth
type city
{'OR': [['Leipzig', 'sister city', {'concept': 'city'}], ['Brian Smith', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Leipzig property:sister_city ?n } UNION { resource:Brian_Smith property:place_of_birth ?n } } . ?n rdf:type ontology:city }
[]
city
Q3624 Q14960 Q1794 Q456 Q1899 Q23661 Q16666
SYSTEM
Addis Ababa, Brno, Frankfurt, Lyon, Kyiv, Wellington, Nanjing
Q3624 Q14960 Q1794 Q456 Q1899 Q23661 Q16666
OR((Q2079,P190,c(Q515)), (Q913075,P19,c(Q515)))
action filter_type
action union
action find
entity Q2079
relation P190
action find
entity Q913075
relation P19
type Q515
[ANSWERS] are twin towns of Leipzig or are the birthplace of Brian Smith
{'OR': [['Q2079', 'P190', {'concept': 'Q515'}], ['Q913075', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q2079 property:P190 ?n } UNION { resource:Q913075 property:P19 ?n } } . ?n rdf:type ontology:Q515 }
Addis Ababa Brno Frankfurt Lyon Kyiv Wellington Nanjing
Addis Ababa, Brno, Frankfurt, Lyon, Kyiv, Wellington and Nanjing are twin towns of Leipzig or are the birthplace of Brian Smith
Addis Ababa Brno Frankfurt Lyon Kyiv Wellington Nanjing
action filter_type
action union
action find
entity Leipzig
relation sister city
action find
entity Brian Smith
relation place of birth
type city
{'OR': [['Leipzig', 'sister city', {'concept': 'city'}], ['Brian Smith', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Leipzig property:sister_city ?n } UNION { resource:Brian_Smith property:place_of_birth ?n } } . ?n rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q1048835 Q20667921 Q515
USER
Which cities are the capital of max number of political territories or french administrative divisions ?
(c(Q515),P1376,c(Q1048835)|c(Q20667921))
action argmax
action union
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action find_tuple_counts
relation P1376
type Q515
type Q20667921
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q1048835'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?s WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:Q20667921 ) ( ontology:Q1048835 ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?y WHERE { { ?y property:P1376 ?z . ?y rdf:type ontology:Q515 . ?z rdf:type ontology:Q1048835 } UNION { ?y property:P1376 ?z . ?y rdf:type ontology:Q515 . ?z rdf:type ontology:Q20667921 } } GROUP BY ?y } . FILTER ( ?q = ?x ) }
action argmax
action union
action find_tuple_counts
relation capital of
type city
type political territorial entity
action find_tuple_counts
relation capital of
type city
type type of french administrative division
[{'concept': 'city'}, 'capital of', [{'concept': 'political territorial entity'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?s WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:type_of_french_administrative_division ) ( ontology:political_territorial_entity ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?y WHERE { { ?y property:capital_of ?z . ?y rdf:type ontology:city . ?z rdf:type ontology:political_territorial_entity } UNION { ?y property:capital_of ?z . ?y rdf:type ontology:city . ?z rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?y } . FILTER ( ?q = ?x ) }
[]
political territorial entity type of french administrative division city
Q23482
SYSTEM
Marseille
Q23482
(c(Q515),P1376,c(Q1048835)|c(Q20667921))
action argmax
action union
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action find_tuple_counts
relation P1376
type Q515
type Q20667921
[ANSWER] is the capital of max number of political territories or french administrative divisions
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q1048835'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?s WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:Q20667921 ) ( ontology:Q1048835 ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?y WHERE { { ?y property:P1376 ?z . ?y rdf:type ontology:Q515 . ?z rdf:type ontology:Q1048835 } UNION { ?y property:P1376 ?z . ?y rdf:type ontology:Q515 . ?z rdf:type ontology:Q20667921 } } GROUP BY ?y } . FILTER ( ?q = ?x ) }
Marseille
Marseille is the capital of max number of political territories or french administrative divisions
Marseille
action argmax
action union
action find_tuple_counts
relation capital of
type city
type political territorial entity
action find_tuple_counts
relation capital of
type city
type type of french administrative division
[{'concept': 'city'}, 'capital of', [{'concept': 'political territorial entity'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) ?s WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:type_of_french_administrative_division ) ( ontology:political_territorial_entity ) } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?y WHERE { { ?y property:capital_of ?z . ?y rdf:type ontology:city . ?z rdf:type ontology:political_territorial_entity } UNION { ?y property:capital_of ?z . ?y rdf:type ontology:city . ?z rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?y } . FILTER ( ?q = ?x ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1899
P36
Q7275
USER
Which states contain Kyiv as their capital ?
(c(Q7275),P36,Q1899)
action filter_type
action find_reverse
entity Q1899
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q1899']
SELECT DISTINCT ?q WHERE { ?q property:P36 resource:Q1899 . ?q rdf:type ontology:Q7275 }
Kyiv
action filter_type
action find_reverse
entity Kyiv
relation capital
type state
[{'concept': 'state'}, 'capital', 'Kyiv']
SELECT DISTINCT ?q WHERE { ?q property:capital resource:Kyiv . ?q rdf:type ontology:state }
[]
state
Q133356 Q1483430 Q1508143
SYSTEM
Ukrainian Soviet Socialist Republic, Principality of Kiev, Ukrainian State
Q133356 Q1483430 Q1508143
(c(Q7275),P36,Q1899)
action filter_type
action find_reverse
entity Q1899
relation P36
type Q7275
[ANSWERS] contain Kyiv as their capital
[{'concept': 'Q7275'}, 'P36', 'Q1899']
SELECT DISTINCT ?q WHERE { ?q property:P36 resource:Q1899 . ?q rdf:type ontology:Q7275 }
Ukrainian Soviet Socialist Republic Principality of Kiev Ukrainian State
Ukrainian Soviet Socialist Republic, Principality of Kiev and Ukrainian State contain Kyiv as their capital
Ukrainian Soviet Socialist Republic Principality of Kiev Ukrainian State
action filter_type
action find_reverse
entity Kyiv
relation capital
type state
[{'concept': 'state'}, 'capital', 'Kyiv']
SELECT DISTINCT ?q WHERE { ?q property:capital resource:Kyiv . ?q rdf:type ontology:state }
[]