Simple Question (Direct)
Simple Question
Q1161585
P19
Q486972
USER
Where was Daniel Lipstorp born ?
(Q1161585,P19,c(Q486972))
action filter_type
action find
entity Q1161585
relation P19
type Q486972
['Q1161585', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?s WHERE { resource:Q1161585 property:P19 ?s . ?s rdf:type ontology:Q486972 }
Daniel Lipstorp
action filter_type
action find
entity Daniel Lipstorp
relation place of birth
type human settlement
['Daniel Lipstorp', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?s WHERE { resource:Daniel_Lipstorp property:place_of_birth ?s . ?s rdf:type ontology:human_settlement }
[]
human settlement
Q2843
SYSTEM
Lübeck
Q2843
(Q1161585,P19,c(Q486972))
action filter_type
action find
entity Q1161585
relation P19
type Q486972
Daniel Lipstorp was born in [ANSWER]
['Q1161585', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?s WHERE { resource:Q1161585 property:P19 ?s . ?s rdf:type ontology:Q486972 }
Lübeck
Daniel Lipstorp was born in Lübeck
Lübeck
action filter_type
action find
entity Daniel Lipstorp
relation place of birth
type human settlement
['Daniel Lipstorp', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?s WHERE { resource:Daniel_Lipstorp property:place_of_birth ?s . ?s rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2843
P276
Q1190554
USER
What is located at that human settlement ?
(c(Q1190554),P276,Q2843)
action filter_type
action find_reverse
entity Q2843
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q2843']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q2843 . ?q rdf:type ontology:Q1190554 }
Lübeck
action filter_type
action find_reverse
entity Lübeck
relation location
type event
[{'concept': 'event'}, 'location', 'Lübeck']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Lübeck . ?q rdf:type ontology:event }
[]
event
Q551247
SYSTEM
Battle of Lübeck
Q551247
(c(Q1190554),P276,Q2843)
action filter_type
action find_reverse
entity Q2843
relation P276
type Q1190554
[ANSWER] is located at that human settlement
[{'concept': 'Q1190554'}, 'P276', 'Q2843']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q2843 . ?q rdf:type ontology:Q1190554 }
Battle of Lübeck
Battle of Lübeck is located at that human settlement
Battle of Lübeck
action filter_type
action find_reverse
entity Lübeck
relation location
type event
[{'concept': 'event'}, 'location', 'Lübeck']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Lübeck . ?q rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2843
P206
Q355304
USER
Which watercourses are situated close to that human settlement ?
(Q551247,P206,c(Q355304))
action filter_type
action find
entity Q2843
relation P206
type Q355304
['Q551247', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?d WHERE { resource:Q2843 property:P206 ?d . ?d rdf:type ontology:Q355304 }
Lübeck
action filter_type
action find
entity Lübeck
relation located next to body of water
type watercourse
['Battle of Lübeck', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?d WHERE { resource:Lübeck property:located_next_to_body_of_water ?d . ?d rdf:type ontology:watercourse }
[]
watercourse
Q686569 Q3302
SYSTEM
Elbe–Lübeck Canal, Trave
Q686569 Q3302
(Q551247,P206,c(Q355304))
action filter_type
action find
entity Q2843
relation P206
type Q355304
[ANSWERS] are situated close to that human settlement
['Q551247', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?d WHERE { resource:Q2843 property:P206 ?d . ?d rdf:type ontology:Q355304 }
Elbe–Lübeck Canal Trave
Elbe–Lübeck Canal and Trave are situated close to that human settlement
Elbe–Lübeck Canal Trave
action filter_type
action find
entity Lübeck
relation located next to body of water
type watercourse
['Battle of Lübeck', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?d WHERE { resource:Lübeck property:located_next_to_body_of_water ?d . ?d rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2843
P206
Q486972
USER
Are Lübeck located next to those watercourses ?
(Q2843,P206,Q686569) (Q2843,P206,Q3302)
action is_in
entity prev_answer
action find
entity Q2843
relation P206
['Q2843', 'P206', 'Q686569'] ['Q2843', 'P206', 'Q3302']
ASK WHERE { VALUES ( ?b ) { ( resource:Q686569 ) ( resource:Q3302 ) } . resource:Q2843 property:P206 ?b }
Lübeck
action is_in
entity prev_answer
action find
entity Lübeck
relation located next to body of water
['Lübeck', 'located next to body of water', 'Elbe–Lübeck Canal'] ['Lübeck', 'located next to body of water', 'Trave']
ASK WHERE { VALUES ( ?b ) { ( resource:Elbe–Lübeck_Canal ) ( resource:Trave ) } . resource:Lübeck property:located_next_to_body_of_water ?b }
[]
human settlement
SYSTEM
YES
(Q2843,P206,Q686569) (Q2843,P206,Q3302)
action is_in
entity prev_answer
action find
entity Q2843
relation P206
[ANSWER]
['Q2843', 'P206', 'Q686569'] ['Q2843', 'P206', 'Q3302']
ASK WHERE { VALUES ( ?b ) { ( resource:Q686569 ) ( resource:Q3302 ) } . resource:Q2843 property:P206 ?b }
Yes
action is_in
entity prev_answer
action find
entity Lübeck
relation located next to body of water
['Lübeck', 'located next to body of water', 'Elbe–Lübeck Canal'] ['Lübeck', 'located next to body of water', 'Trave']
ASK WHERE { VALUES ( ?b ) { ( resource:Elbe–Lübeck_Canal ) ( resource:Trave ) } . resource:Lübeck property:located_next_to_body_of_water ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2843
P206
Q15324 Q355304
USER
How many bodies of water or watercourses are situated nearby Lübeck ?
(Q2843,P206,c(Q15324)) (Q2843,P206,c(Q355304))
action count
action union
action filter_type
action find
entity Q2843
relation P206
type Q15324
action filter_type
action find
entity Q2843
relation P206
type Q355304
['Q2843', 'P206', {'concept': 'Q15324'}] ['Q2843', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { resource:Q2843 property:P206 ?q . ?q rdf:type ontology:Q355304 } UNION { resource:Q2843 property:P206 ?q . ?q rdf:type ontology:Q15324 } }
Lübeck
action count
action union
action filter_type
action find
entity Lübeck
relation located next to body of water
type body of water
action filter_type
action find
entity Lübeck
relation located next to body of water
type watercourse
['Lübeck', 'located next to body of water', {'concept': 'body of water'}] ['Lübeck', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { resource:Lübeck property:located_next_to_body_of_water ?q . ?q rdf:type ontology:watercourse } UNION { resource:Lübeck property:located_next_to_body_of_water ?q . ?q rdf:type ontology:body_of_water } }
[]
body of water watercourse
SYSTEM
3
Q686569 Q700309 Q3302
(Q2843,P206,c(Q15324)) (Q2843,P206,c(Q355304))
action count
action union
action filter_type
action find
entity Q2843
relation P206
type Q15324
action filter_type
action find
entity Q2843
relation P206
type Q355304
[ANSWER]
['Q2843', 'P206', {'concept': 'Q15324'}] ['Q2843', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { resource:Q2843 property:P206 ?q . ?q rdf:type ontology:Q355304 } UNION { resource:Q2843 property:P206 ?q . ?q rdf:type ontology:Q15324 } }
Elbe–Lübeck Canal Bay of Lübeck Trave
3
action count
action union
action filter_type
action find
entity Lübeck
relation located next to body of water
type body of water
action filter_type
action find
entity Lübeck
relation located next to body of water
type watercourse
['Lübeck', 'located next to body of water', {'concept': 'body of water'}] ['Lübeck', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { resource:Lübeck property:located_next_to_body_of_water ?q . ?q rdf:type ontology:watercourse } UNION { resource:Lübeck property:located_next_to_body_of_water ?q . ?q rdf:type ontology:body_of_water } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3000 Q3302
P47 P206
Q486972
USER
Which human settlements are situated close to Trave and have an adjacent border with Herzogtum Lauenburg ?
AND((c(Q486972),P206,Q3302), (c(Q486972),P47,Q3000))
action filter_type
action intersection
action find_reverse
entity Q3302
relation P206
action find_reverse
entity Q3000
relation P47
type Q486972
{'AND': [[{'concept': 'Q486972'}, 'P206', 'Q3302'], [{'concept': 'Q486972'}, 'P47', 'Q3000']]}
SELECT DISTINCT ?m WHERE { ?m property:P206 resource:Q3302 . ?m property:P47 resource:Q3000 . ?m rdf:type ontology:Q486972 }
Herzogtum Lauenburg Trave
action filter_type
action intersection
action find_reverse
entity Trave
relation located next to body of water
action find_reverse
entity Herzogtum Lauenburg
relation shares border with
type human settlement
{'AND': [[{'concept': 'human settlement'}, 'located next to body of water', 'Trave'], [{'concept': 'human settlement'}, 'shares border with', 'Herzogtum Lauenburg']]}
SELECT DISTINCT ?m WHERE { ?m property:located_next_to_body_of_water resource:Trave . ?m property:shares_border_with resource:Herzogtum_Lauenburg . ?m rdf:type ontology:human_settlement }
[]
human settlement
Q2843
SYSTEM
Lübeck
Q2843
AND((c(Q486972),P206,Q3302), (c(Q486972),P47,Q3000))
action filter_type
action intersection
action find_reverse
entity Q3302
relation P206
action find_reverse
entity Q3000
relation P47
type Q486972
[ANSWER] is situated close to Trave and have an adjacent border with Herzogtum Lauenburg
{'AND': [[{'concept': 'Q486972'}, 'P206', 'Q3302'], [{'concept': 'Q486972'}, 'P47', 'Q3000']]}
SELECT DISTINCT ?m WHERE { ?m property:P206 resource:Q3302 . ?m property:P47 resource:Q3000 . ?m rdf:type ontology:Q486972 }
Lübeck
Lübeck is situated close to Trave and have an adjacent border with Herzogtum Lauenburg
Lübeck
action filter_type
action intersection
action find_reverse
entity Trave
relation located next to body of water
action find_reverse
entity Herzogtum Lauenburg
relation shares border with
type human settlement
{'AND': [[{'concept': 'human settlement'}, 'located next to body of water', 'Trave'], [{'concept': 'human settlement'}, 'shares border with', 'Herzogtum Lauenburg']]}
SELECT DISTINCT ?m WHERE { ?m property:located_next_to_body_of_water resource:Trave . ?m property:shares_border_with resource:Herzogtum_Lauenburg . ?m rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q1190554 Q11060274 Q18783400
USER
Which events are demonstrated in atleast 3 prints and genres of sculpture ?
(c(Q11060274)|c(Q18783400),P180,c(Q1190554))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q18783400
value 3
[[{'concept': 'Q11060274'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q1190554'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?q >= 3 ) . { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:P180 ?j . ?j rdf:type ontology:Q1190554 . ?w rdf:type ontology:Q11060274 } UNION { ?w property:P180 ?j . ?j rdf:type ontology:Q1190554 . ?w rdf:type ontology:Q18783400 } } GROUP BY ?j } }
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type event
type print
action find_reverse_tuple_counts
relation depicts
type event
type genre of sculpture
value 3
[[{'concept': 'print'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'event'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?q >= 3 ) . { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:depicts ?j . ?j rdf:type ontology:event . ?w rdf:type ontology:print } UNION { ?w property:depicts ?j . ?j rdf:type ontology:event . ?w rdf:type ontology:genre_of_sculpture } } GROUP BY ?j } }
[]
event print genre of sculpture
Q385378 Q7561
SYSTEM
construction, snow
Q385378 Q7561
(c(Q11060274)|c(Q18783400),P180,c(Q1190554))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q1190554
type Q18783400
value 3
[ANSWERS] are demonstrated in atleast 3 prints and genres of sculpture
[[{'concept': 'Q11060274'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q1190554'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?q >= 3 ) . { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:P180 ?j . ?j rdf:type ontology:Q1190554 . ?w rdf:type ontology:Q11060274 } UNION { ?w property:P180 ?j . ?j rdf:type ontology:Q1190554 . ?w rdf:type ontology:Q18783400 } } GROUP BY ?j } }
construction snow
Construction and snow are demonstrated in atleast 3 prints and genres of sculpture
construction snow
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type event
type print
action find_reverse_tuple_counts
relation depicts
type event
type genre of sculpture
value 3
[[{'concept': 'print'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'event'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?q >= 3 ) . { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:depicts ?j . ?j rdf:type ontology:event . ?w rdf:type ontology:print } UNION { ?w property:depicts ?j . ?j rdf:type ontology:event . ?w rdf:type ontology:genre_of_sculpture } } GROUP BY ?j } }
[]