Simple Question (Direct)
Simple Question
Q16025923
P734
Q82799
USER
Who is associated with Victor Lagrange ?
(Q16025923,P734,c(Q82799))
action filter_type
action find
entity Q16025923
relation P734
type Q82799
['Q16025923', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q16025923 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Victor Lagrange
action filter_type
action find
entity Victor Lagrange
relation family name
type name
['Victor Lagrange', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Victor_Lagrange property:family_name ?i . ?i rdf:type ontology:name }
[]
name
Q24533919
SYSTEM
Lagrange
Q24533919
(Q16025923,P734,c(Q82799))
action filter_type
action find
entity Q16025923
relation P734
type Q82799
[ANSWER] is associated with Victor [ANSWER]
['Q16025923', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q16025923 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Lagrange
Lagrange is associated with Victor Lagrange
Lagrange
action filter_type
action find
entity Victor Lagrange
relation family name
type name
['Victor Lagrange', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Victor_Lagrange property:family_name ?i . ?i rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16025923
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q24533919,P27,c(Q15617994))
action filter_type
action find
entity Q16025923
relation P27
type Q15617994
['Q24533919', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q16025923 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Victor Lagrange
action filter_type
action find
entity Victor Lagrange
relation country of citizenship
type designation for an administrative territorial entity
['Lagrange', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Victor_Lagrange property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q24533919,P27,c(Q15617994))
action filter_type
action find
entity Q16025923
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q24533919', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q16025923 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
France
The France is the native country of that person
France
action filter_type
action find
entity Victor Lagrange
relation country of citizenship
type designation for an administrative territorial entity
['Lagrange', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Victor_Lagrange property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?w ) WHERE { ?o property:P530 ?h . ?o rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?w = ?a ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?a ) { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?u ) WHERE { ?m property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?m } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?w ) WHERE { ?o property:diplomatic_relation ?h . ?o rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?w = ?a ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?a ) { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?u ) WHERE { ?m property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?m } } }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have ambassadorial relations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?w ) WHERE { ?o property:P530 ?h . ?o rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?o } . FILTER ( ?w = ?a ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?a ) { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?u ) WHERE { ?m property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } GROUP BY ?m } } }
Germany
Germany have ambassadorial relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?w ) WHERE { ?o property:diplomatic_relation ?h . ?o rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?w = ?a ) . { SELECT DISTINCT ( MAX ( ?u ) AS ?a ) { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?u ) WHERE { ?m property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?m } } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q55
P47
Q15617994
USER
Is Netherlands bordered by Germany ?
(Q183,P47,Q55)
action is_in
entity Q55
action find
entity Q183
relation P47
['Q183', 'P47', 'Q55']
ASK WHERE { resource:Q183 property:P47 resource:Q55 }
Germany Netherlands
action is_in
entity Netherlands
action find
entity Germany
relation shares border with
['Germany', 'shares border with', 'Netherlands']
ASK WHERE { resource:Germany property:shares_border_with resource:Netherlands }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q183,P47,Q55)
action is_in
entity Q55
action find
entity Q183
relation P47
[ANSWER]
['Q183', 'P47', 'Q55']
ASK WHERE { resource:Q183 property:P47 resource:Q55 }
Yes
action is_in
entity Netherlands
action find
entity Germany
relation shares border with
['Germany', 'shares border with', 'Netherlands']
ASK WHERE { resource:Germany property:shares_border_with resource:Netherlands }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P35
Q502895
USER
Who are elected as the head of state of that political territory ?
action filter_type
action find
entity Q183
relation P35
type Q502895
SELECT DISTINCT ?a WHERE { resource:Q183 property:P35 ?a . ?a rdf:type ontology:Q502895 }
Germany
action filter_type
action find
entity Germany
relation head of state
type common name
SELECT DISTINCT ?a WHERE { resource:Germany property:head_of_state ?a . ?a rdf:type ontology:common_name }
[]
common name
Q2567 Q2571 Q2594
SYSTEM
Richard von Weizsäcker, Walter Scheel, Theodor Heuss
Q2569 Q2594 Q2573 Q2563 Q2571 Q2538 Q2551 Q2567 Q2540 Q2582 Q2542
action filter_type
action find
entity Q183
relation P35
type Q502895
[ANSWERS] are elected as the head of state of that political territory
SELECT DISTINCT ?a WHERE { resource:Q183 property:P35 ?a . ?a rdf:type ontology:Q502895 }
Karl Carstens Theodor Heuss Gustav Heinemann Roman Herzog Walter Scheel Joachim Gauck Johannes Rau Richard von Weizsäcker Christian Wulff Heinrich Lübke Horst Köhler
Richard von Weizsäcker, Walter Scheel and Theodor Heuss are elected as the head of state of that political territory
Richard von Weizsäcker Walter Scheel Theodor Heuss
action filter_type
action find
entity Germany
relation head of state
type common name
SELECT DISTINCT ?a WHERE { resource:Germany property:head_of_state ?a . ?a rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P35
Q1048835
USER
How many political territories elected that person as their head of state ?
(c(Q1048835),P35,Q2567)
[{'concept': 'Q1048835'}, 'P35', 'Q2567']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q48352 resource:Q2567 . ?z rdf:type ontology:Q1048835 }
[{'concept': 'political territorial entity'}, 'head of state', 'Richard von Weizsäcker']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:head_of_state resource:Richard_von_Weizsäcker . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q2571
SYSTEM
Did you mean Walter Scheel ?
(c(Q1048835),P35,Q2567) (c(Q1048835),P35,Q2571) (c(Q1048835),P35,Q2594)
[ANSWER]
[{'concept': 'Q1048835'}, 'P35', 'Q2567'] [{'concept': 'Q1048835'}, 'P35', 'Q2571'] [{'concept': 'Q1048835'}, 'P35', 'Q2594']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q48352 resource:Q2567 . ?z rdf:type ontology:Q1048835 }
Did you mean Walter Scheel ?
Walter Scheel
[{'concept': 'political territorial entity'}, 'head of state', 'Richard von Weizsäcker'] [{'concept': 'political territorial entity'}, 'head of state', 'Walter Scheel'] [{'concept': 'political territorial entity'}, 'head of state', 'Theodor Heuss']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:head_of_state resource:Richard_von_Weizsäcker . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Richard von Weizsäcker. Could you tell me the answer for that?
(c(Q1048835),P35,Q2567)
Q2567
[{'concept': 'Q1048835'}, 'P35', 'Q2567']
[{'concept': 'political territorial entity'}, 'head of state', 'Richard von Weizsäcker']
[]
SYSTEM
1
Q183
(c(Q1048835),P35,Q2567)
[ANSWER]
[{'concept': 'Q1048835'}, 'P35', 'Q2567']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q48352 resource:Q2567 . ?z rdf:type ontology:Q1048835 }
Germany
1
[{'concept': 'political territorial entity'}, 'head of state', 'Richard von Weizsäcker']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:head_of_state resource:Richard_von_Weizsäcker . ?z rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1605665 Q24533919
P734 P735
Q502895
USER
Which people have Lagrange as surname and have Henri as forename ?
AND((c(Q502895),P734,Q24533919), (c(Q502895),P735,Q1605665))
action filter_type
action intersection
action find_reverse
entity Q24533919
relation P734
action find_reverse
entity Q1605665
relation P735
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q24533919'], [{'concept': 'Q502895'}, 'P735', 'Q1605665']]}
SELECT DISTINCT ?m WHERE { ?m property:P735 resource:Q1605665 . ?m property:P734 resource:Q24533919 . ?m rdf:type ontology:Q502895 }
Henri Lagrange
action filter_type
action intersection
action find_reverse
entity Lagrange
relation family name
action find_reverse
entity Henri
relation given name
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Lagrange'], [{'concept': 'common name'}, 'given name', 'Henri']]}
SELECT DISTINCT ?m WHERE { ?m property:given_name resource:Henri . ?m property:family_name resource:Lagrange . ?m rdf:type ontology:common_name }
[]
common name
Q3131403
SYSTEM
Henri Lagrange
Q3131403
AND((c(Q502895),P734,Q24533919), (c(Q502895),P735,Q1605665))
action filter_type
action intersection
action find_reverse
entity Q24533919
relation P734
action find_reverse
entity Q1605665
relation P735
type Q502895
[ANSWER] have Lagrange as surname and have Henri as forename
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q24533919'], [{'concept': 'Q502895'}, 'P735', 'Q1605665']]}
SELECT DISTINCT ?m WHERE { ?m property:P735 resource:Q1605665 . ?m property:P734 resource:Q24533919 . ?m rdf:type ontology:Q502895 }
Henri Lagrange
Henri Lagrange have Lagrange as surname and have Henri as forename
Henri Lagrange
action filter_type
action intersection
action find_reverse
entity Lagrange
relation family name
action find_reverse
entity Henri
relation given name
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Lagrange'], [{'concept': 'common name'}, 'given name', 'Henri']]}
SELECT DISTINCT ?m WHERE { ?m property:given_name resource:Henri . ?m property:family_name resource:Lagrange . ?m rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?o = ?c ) . { SELECT DISTINCT ( MIN ( ?e ) AS ?c ) { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?z } } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?o = ?c ) . { SELECT DISTINCT ( MIN ( ?e ) AS ?c ) { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?z } } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?o = ?c ) . { SELECT DISTINCT ( MIN ( ?e ) AS ?c ) { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?z } } }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?o = ?c ) . { SELECT DISTINCT ( MIN ( ?e ) AS ?c ) { SELECT DISTINCT ?z ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?z } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P88
Q12280
USER
Which bridge has Germany as its commisioner ?
(c(Q12280),P88,Q183)
action filter_type
action find_reverse
entity Q183
relation P88
type Q12280
[{'concept': 'Q12280'}, 'P88', 'Q183']
SELECT DISTINCT ?j WHERE { ?j property:P88 resource:Q183 . ?j rdf:type ontology:Q12280 }
Germany
action filter_type
action find_reverse
entity Germany
relation commissioned by
type bridge
[{'concept': 'bridge'}, 'commissioned by', 'Germany']
SELECT DISTINCT ?j WHERE { ?j property:commissioned_by resource:Germany . ?j rdf:type ontology:bridge }
[]
bridge
Q15715928
SYSTEM
Fußgängerüberführung Wielstraße
Q15715928
(c(Q12280),P88,Q183)
action filter_type
action find_reverse
entity Q183
relation P88
type Q12280
[ANSWER] has Germany as its commisioner
[{'concept': 'Q12280'}, 'P88', 'Q183']
SELECT DISTINCT ?j WHERE { ?j property:P88 resource:Q183 . ?j rdf:type ontology:Q12280 }
Fußgängerüberführung Wielstraße
Fußgängerüberführung Wielstraße has Germany as its commisioner
Fußgängerüberführung Wielstraße
action filter_type
action find_reverse
entity Germany
relation commissioned by
type bridge
[{'concept': 'bridge'}, 'commissioned by', 'Germany']
SELECT DISTINCT ?j WHERE { ?j property:commissioned_by resource:Germany . ?j rdf:type ontology:bridge }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P176
Q81103
USER
What was manufactured by that political territory ?
(c(Q81103),P176,Q15715928)
action filter_type
action find_reverse
entity Q183
relation P176
type Q81103
[{'concept': 'Q81103'}, 'P176', 'Q15715928']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q81103 . ?f property:P176 resource:Q183 }
Germany
action filter_type
action find_reverse
entity Germany
relation manufacturer
type cannon
[{'concept': 'cannon'}, 'manufacturer', 'Fußgängerüberführung Wielstraße']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:cannon . ?f property:manufacturer resource:Germany }
[]
cannon
Q813702
SYSTEM
Becker Type M2
Q813702
(c(Q81103),P176,Q15715928)
action filter_type
action find_reverse
entity Q183
relation P176
type Q81103
[ANSWER] was manufactured by that political territory
[{'concept': 'Q81103'}, 'P176', 'Q15715928']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q81103 . ?f property:P176 resource:Q183 }
Becker Type M2
Becker Type M2 was manufactured by that political territory
Becker Type M2
action filter_type
action find_reverse
entity Germany
relation manufacturer
type cannon
[{'concept': 'cannon'}, 'manufacturer', 'Fußgängerüberführung Wielstraße']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:cannon . ?f property:manufacturer resource:Germany }
[]