Simple Question (Direct)
Simple Question
Q1629980
P21
Q290
USER
What is the sex of Horst Steinkühler ?
(Q1629980,P21,c(Q290))
action filter_type
action find
entity Q1629980
relation P21
type Q290
['Q1629980', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1629980 property:P21 ?x . ?x rdf:type ontology:Q290 }
Horst Steinkühler
action filter_type
action find
entity Horst Steinkühler
relation gender
type sex
['Horst Steinkühler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Horst_Steinkühler property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1629980,P21,c(Q290))
action filter_type
action find
entity Q1629980
relation P21
type Q290
The sex of Horst Steinkühler is the [ANSWER]
['Q1629980', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1629980 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
The sex of Horst Steinkühler is the male
male
action filter_type
action find
entity Horst Steinkühler
relation gender
type sex
['Horst Steinkühler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Horst_Steinkühler property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1629980
P1344
Q1499496
USER
Which German presidential election did Horst Steinkühler compete in ?
(Q1629980,P1344,c(Q1499496))
action filter_type
action find
entity Q1629980
relation P1344
type Q1499496
['Q1629980', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?a WHERE { resource:Q1629980 property:P1344 ?a . ?a rdf:type ontology:Q1499496 }
Horst Steinkühler
action filter_type
action find
entity Horst Steinkühler
relation participant of
type German presidential election
['Horst Steinkühler', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?a WHERE { resource:Horst_Steinkühler property:participant_of ?a . ?a rdf:type ontology:German_presidential_election }
[]
German presidential election
Q451110
SYSTEM
German presidential election, 1999
Q451110
(Q1629980,P1344,c(Q1499496))
action filter_type
action find
entity Q1629980
relation P1344
type Q1499496
Horst Steinkühler competed in [ANSWER]
['Q1629980', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?a WHERE { resource:Q1629980 property:P1344 ?a . ?a rdf:type ontology:Q1499496 }
German presidential election, 1999
Horst Steinkühler competed in German presidential election, 1999
German presidential election, 1999
action filter_type
action find
entity Horst Steinkühler
relation participant of
type German presidential election
['Horst Steinkühler', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?a WHERE { resource:Horst_Steinkühler property:participant_of ?a . ?a rdf:type ontology:German_presidential_election }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q916655
Q1499496
USER
And what about Brigitte Schulte?
(Q916655,P1344,c(Q1499496))
action filter_type
action find
entity Q916655
relation P1344
type Q1499496
['Q916655', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?z WHERE { resource:Q916655 property:P1344 ?z . ?z rdf:type ontology:Q1499496 }
Brigitte Schulte
action filter_type
action find
entity Brigitte Schulte
relation participant of
type German presidential election
['Brigitte Schulte', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?z WHERE { resource:Brigitte_Schulte property:participant_of ?z . ?z rdf:type ontology:German_presidential_election }
[]
German presidential election
Q451110 Q314532
SYSTEM
German presidential election, 1999, German presidential election, 2004
Q451110 Q314532
(Q916655,P1344,c(Q1499496))
action filter_type
action find
entity Q916655
relation P1344
type Q1499496
[ANSWERS]
['Q916655', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?z WHERE { resource:Q916655 property:P1344 ?z . ?z rdf:type ontology:Q1499496 }
German presidential election, 1999 German presidential election, 2004
German presidential election, 1999 German presidential election, 2004
action filter_type
action find
entity Brigitte Schulte
relation participant of
type German presidential election
['Brigitte Schulte', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?z WHERE { resource:Brigitte_Schulte property:participant_of ?z . ?z rdf:type ontology:German_presidential_election }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q916655
P937
Q56061
USER
Where did that person work ?
(Q451110,P937,c(Q56061)) (Q314532,P937,c(Q56061))
action filter_type
action find
entity Q916655
relation P937
type Q56061
['Q451110', 'P937', {'concept': 'Q56061'}] ['Q314532', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q916655 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Brigitte Schulte
action filter_type
action find
entity Brigitte Schulte
relation work location
type administrative territorial entity
['German presidential election, 1999', 'work location', {'concept': 'administrative territorial entity'}] ['German presidential election, 2004', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Brigitte_Schulte property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q451110,P937,c(Q56061)) (Q314532,P937,c(Q56061))
action filter_type
action find
entity Q916655
relation P937
type Q56061
That person worked in [ANSWER]
['Q451110', 'P937', {'concept': 'Q56061'}] ['Q314532', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q916655 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Bonn
That person worked in Bonn
Bonn
action filter_type
action find
entity Brigitte Schulte
relation work location
type administrative territorial entity
['German presidential election, 1999', 'work location', {'concept': 'administrative territorial entity'}] ['German presidential election, 2004', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Brigitte_Schulte property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P609
Q56061 Q12280 Q34442
USER
Which administrative territories are the destination of max number of bridges or roads ?
(c(Q12280)|c(Q34442),P609,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
[[{'concept': 'Q12280'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?c WHERE { { ?w property:P609 ?c . ?w rdf:type ontology:Q12280 . ?c rdf:type ontology:Q56061 } UNION { ?w property:P609 ?c . ?c rdf:type ontology:Q56061 . ?w rdf:type ontology:Q34442 } } GROUP BY ?c } . FILTER ( ?z = ?m ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?o WHERE { { ?u property:P609 ?o . ?u rdf:type ontology:Q12280 . ?o rdf:type ontology:Q56061 } UNION { ?u property:P609 ?o . ?o rdf:type ontology:Q56061 . ?u rdf:type ontology:Q34442 } } GROUP BY ?o } } }
action argmax
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
[[{'concept': 'bridge'}, {'concept': 'road'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?c WHERE { { ?w property:terminus_location ?c . ?w rdf:type ontology:bridge . ?c rdf:type ontology:administrative_territorial_entity } UNION { ?w property:terminus_location ?c . ?c rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:road } } GROUP BY ?c } . FILTER ( ?z = ?m ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?o WHERE { { ?u property:terminus_location ?o . ?u rdf:type ontology:bridge . ?o rdf:type ontology:administrative_territorial_entity } UNION { ?u property:terminus_location ?o . ?o rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:road } } GROUP BY ?o } } }
[]
administrative territorial entity bridge road
Q740149
SYSTEM
Södermalm
Q740149
(c(Q12280)|c(Q34442),P609,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
[ANSWER] is the destination of max number of bridges or roads
[[{'concept': 'Q12280'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?c WHERE { { ?w property:P609 ?c . ?w rdf:type ontology:Q12280 . ?c rdf:type ontology:Q56061 } UNION { ?w property:P609 ?c . ?c rdf:type ontology:Q56061 . ?w rdf:type ontology:Q34442 } } GROUP BY ?c } . FILTER ( ?z = ?m ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?o WHERE { { ?u property:P609 ?o . ?u rdf:type ontology:Q12280 . ?o rdf:type ontology:Q56061 } UNION { ?u property:P609 ?o . ?o rdf:type ontology:Q56061 . ?u rdf:type ontology:Q34442 } } GROUP BY ?o } } }
Södermalm
Södermalm is the destination of max number of bridges or roads
Södermalm
action argmax
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
[[{'concept': 'bridge'}, {'concept': 'road'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?c WHERE { { ?w property:terminus_location ?c . ?w rdf:type ontology:bridge . ?c rdf:type ontology:administrative_territorial_entity } UNION { ?w property:terminus_location ?c . ?c rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:road } } GROUP BY ?c } . FILTER ( ?z = ?m ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?o WHERE { { ?u property:terminus_location ?o . ?u rdf:type ontology:bridge . ?o rdf:type ontology:administrative_territorial_entity } UNION { ?u property:terminus_location ?o . ?o rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:road } } GROUP BY ?o } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q740149
P47
Q56061
USER
Which administrative territories share border with that one ?
(Q740149,P47,c(Q56061))
action filter_type
action find
entity Q740149
relation P47
type Q56061
['Q740149', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q740149 property:P47 ?r . ?r rdf:type ontology:Q56061 }
Södermalm
action filter_type
action find
entity Södermalm
relation shares border with
type administrative territorial entity
['Södermalm', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Södermalm property:shares_border_with ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q831527 Q4411341 Q201002
SYSTEM
Djurgården, Södra Hammarbyhamnen, Liljeholmen
Q10670072 Q579854 Q831527 Q780785 Q4411341 Q201002 Q1043381 Q1782644
(Q740149,P47,c(Q56061))
action filter_type
action find
entity Q740149
relation P47
type Q56061
[ANSWERS] share border with that one
['Q740149', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q740149 property:P47 ?r . ?r rdf:type ontology:Q56061 }
Skeppsholmen Gamla stan Djurgården Långholmen Södra Hammarbyhamnen Liljeholmen Reimersholme Årsta
Djurgården, Södra Hammarbyhamnen and Liljeholmen share border with that one
Djurgården Södra Hammarbyhamnen Liljeholmen
action filter_type
action find
entity Södermalm
relation shares border with
type administrative territorial entity
['Södermalm', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Södermalm property:shares_border_with ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q740149
P47
Q56061
USER
Do Södermalm have an adjacent border with those ones ?
(Q740149,P47,Q831527) (Q740149,P47,Q4411341) (Q740149,P47,Q201002)
action is_in
entity prev_answer
action find
entity Q740149
relation P47
['Q740149', 'P47', 'Q831527'] ['Q740149', 'P47', 'Q4411341'] ['Q740149', 'P47', 'Q201002']
ASK WHERE { VALUES ( ?j ) { ( resource:Q10670072 ) ( resource:Q579854 ) ( resource:Q831527 ) } . resource:Q740149 property:P47 ?j }
Södermalm
action is_in
entity prev_answer
action find
entity Södermalm
relation shares border with
['Södermalm', 'shares border with', 'Djurgården'] ['Södermalm', 'shares border with', 'Södra Hammarbyhamnen'] ['Södermalm', 'shares border with', 'Liljeholmen']
ASK WHERE { VALUES ( ?j ) { ( resource:Skeppsholmen ) ( resource:Gamla_stan ) ( resource:Djurgården ) } . resource:Södermalm property:shares_border_with ?j }
[]
administrative territorial entity
SYSTEM
YES
(Q740149,P47,Q831527) (Q740149,P47,Q4411341) (Q740149,P47,Q201002)
action is_in
entity prev_answer
action find
entity Q740149
relation P47
[ANSWER]
['Q740149', 'P47', 'Q831527'] ['Q740149', 'P47', 'Q4411341'] ['Q740149', 'P47', 'Q201002']
ASK WHERE { VALUES ( ?j ) { ( resource:Q10670072 ) ( resource:Q579854 ) ( resource:Q831527 ) } . resource:Q740149 property:P47 ?j }
Yes
action is_in
entity prev_answer
action find
entity Södermalm
relation shares border with
['Södermalm', 'shares border with', 'Djurgården'] ['Södermalm', 'shares border with', 'Södra Hammarbyhamnen'] ['Södermalm', 'shares border with', 'Liljeholmen']
ASK WHERE { VALUES ( ?j ) { ( resource:Skeppsholmen ) ( resource:Gamla_stan ) ( resource:Djurgården ) } . resource:Södermalm property:shares_border_with ?j }
[]