Simple Question (Direct)
Simple Question
Q87413
P20
Q15617994
USER
Where did the expiration of Klaus Pohl occur ?
(Q87413,P20,c(Q15617994))
action filter_type
action find
entity Q87413
relation P20
type Q15617994
['Q87413', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q87413 property:P20 ?h . ?h rdf:type ontology:Q15617994 }
Klaus Pohl
action filter_type
action find
entity Klaus Pohl
relation place of death
type designation for an administrative territorial entity
['Klaus Pohl', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Klaus_Pohl property:place_of_death ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q683068
SYSTEM
Garsten
Q683068
(Q87413,P20,c(Q15617994))
action filter_type
action find
entity Q87413
relation P20
type Q15617994
The expiration of Klaus Pohl occurred in [ANSWER]
['Q87413', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q87413 property:P20 ?h . ?h rdf:type ontology:Q15617994 }
Garsten
The expiration of Klaus Pohl occurred in Garsten
Garsten
action filter_type
action find
entity Klaus Pohl
relation place of death
type designation for an administrative territorial entity
['Klaus Pohl', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Klaus_Pohl property:place_of_death ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q683068
P19
Q502895
USER
Who have location of birth at that administrative territory ?
(c(Q502895),P19,Q683068)
action filter_type
action find_reverse
entity Q683068
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q683068']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P19 resource:Q683068 }
Garsten
action filter_type
action find_reverse
entity Garsten
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Garsten']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:place_of_birth resource:Garsten }
[]
common name
Q1716486 Q1381747 Q1827076
SYSTEM
Karl Kokesch, Evelyn Grill, Linus Kefer
Q1315760 Q1611796 Q1716486 Q1381747 Q768044 Q1827076
(c(Q502895),P19,Q683068)
action filter_type
action find_reverse
entity Q683068
relation P19
type Q502895
[ANSWERS] have location of birth at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q683068']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P19 resource:Q683068 }
Josef Breurather Hermann Kletzmayr Karl Kokesch Evelyn Grill Augustin Reslhuber Linus Kefer
Karl Kokesch, Evelyn Grill and Linus Kefer have location of birth at that administrative territory
Karl Kokesch Evelyn Grill Linus Kefer
action filter_type
action find_reverse
entity Garsten
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Garsten']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:place_of_birth resource:Garsten }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1716486
P27
Q1048835
USER
How many political territories are the countries of citizenship of Karl Kokesch ?
(Q1716486,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1716486
relation P27
type Q1048835
['Q1716486', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q1716486 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Karl Kokesch
action count
action filter_type
action find
entity Karl Kokesch
relation country of citizenship
type political territorial entity
['Karl Kokesch', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Karl_Kokesch property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q40
(Q1716486,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1716486
relation P27
type Q1048835
[ANSWER]
['Q1716486', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q1716486 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Austria
1
action count
action filter_type
action find
entity Karl Kokesch
relation country of citizenship
type political territorial entity
['Karl Kokesch', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Karl_Kokesch property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q7323302
P27
Q1048835
USER
And also tell me about Rich Hope?
(Q7323302,P27,c(Q1048835))
action count
action filter_type
action find
entity Q7323302
relation P27
type Q1048835
['Q7323302', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Q7323302 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Rich Hope
action count
action filter_type
action find
entity Rich Hope
relation country of citizenship
type political territorial entity
['Rich Hope', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Rich_Hope property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q16
(Q7323302,P27,c(Q1048835))
action count
action filter_type
action find
entity Q7323302
relation P27
type Q1048835
[ANSWER]
['Q7323302', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Q7323302 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Canada
1
action count
action filter_type
action find
entity Rich Hope
relation country of citizenship
type political territorial entity
['Rich Hope', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Rich_Hope property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q4719248
Q1048835
USER
And how about Alexander John Skene?
(Q4719248,P27,c(Q1048835))
action count
action filter_type
action find
entity Q4719248
relation P27
type Q1048835
['Q4719248', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Q4719248 property:P27 ?u . ?u rdf:type ontology:Q1048835 }
Alexander John Skene
action count
action filter_type
action find
entity Alexander John Skene
relation country of citizenship
type political territorial entity
['Alexander John Skene', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Alexander_John_Skene property:country_of_citizenship ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
(Q4719248,P27,c(Q1048835))
action count
action filter_type
action find
entity Q4719248
relation P27
type Q1048835
[ANSWER]
['Q4719248', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Q4719248 property:P27 ?u . ?u rdf:type ontology:Q1048835 }
1
action count
action filter_type
action find
entity Alexander John Skene
relation country of citizenship
type political territorial entity
['Alexander John Skene', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { resource:Alexander_John_Skene property:country_of_citizenship ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4719248
P1412
Q34770
USER
Which language can that person read ?
action filter_type
action find
entity Q4719248
relation P1412
type Q34770
SELECT DISTINCT ?a WHERE { resource:Q4719248 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
Alexander John Skene
action filter_type
action find
entity Alexander John Skene
relation languages spoken, written or signed
type language
SELECT DISTINCT ?a WHERE { resource:Alexander_John_Skene property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
action filter_type
action find
entity Q4719248
relation P1412
type Q34770
That person can read the [ANSWER]
SELECT DISTINCT ?a WHERE { resource:Q4719248 property:P1412 ?a . ?a rdf:type ontology:Q34770 }
English
That person can read the English
English
action filter_type
action find
entity Alexander John Skene
relation languages spoken, written or signed
type language
SELECT DISTINCT ?a WHERE { resource:Alexander_John_Skene property:languages_spoken,_written_or_signed ?a . ?a rdf:type ontology:language }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1029
Q502895 Q12973014 Q2235308
USER
Which people were crew members of max number of sports teams and ship types ?
(c(Q12973014)|c(Q2235308),P1029,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q12973014
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q2235308
[[{'concept': 'Q12973014'}, {'concept': 'Q2235308'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?r ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { VALUES ( ?p ) { ( ontology:Q12973014 ) ( ontology:Q2235308 ) } . ?i rdf:type ?p } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?d ) WHERE { { ?m property:P1029 ?s . ?s rdf:type ontology:Q502895 . ?m rdf:type ontology:Q12973014 } UNION { ?m property:P1029 ?s . ?s rdf:type ontology:Q502895 . ?m rdf:type ontology:Q2235308 } } GROUP BY ?s } . FILTER ( ?d = ?r ) }
action argmax
action union
action find_reverse_tuple_counts
relation crew member
type common name
type sports team
action find_reverse_tuple_counts
relation crew member
type common name
type ship type
[[{'concept': 'sports team'}, {'concept': 'ship type'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?r ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { VALUES ( ?p ) { ( ontology:sports_team ) ( ontology:ship_type ) } . ?i rdf:type ?p } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?d ) WHERE { { ?m property:crew_member ?s . ?s rdf:type ontology:common_name . ?m rdf:type ontology:sports_team } UNION { ?m property:crew_member ?s . ?s rdf:type ontology:common_name . ?m rdf:type ontology:ship_type } } GROUP BY ?s } . FILTER ( ?d = ?r ) }
[]
common name sports team ship type
Q97007 Q461881
SYSTEM
Alexandre Imperatori, Mike Conway
Q97007 Q461881
(c(Q12973014)|c(Q2235308),P1029,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q12973014
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q2235308
[ANSWERS] were crew members of max number of sports teams and ship types
[[{'concept': 'Q12973014'}, {'concept': 'Q2235308'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?r ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { VALUES ( ?p ) { ( ontology:Q12973014 ) ( ontology:Q2235308 ) } . ?i rdf:type ?p } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?d ) WHERE { { ?m property:P1029 ?s . ?s rdf:type ontology:Q502895 . ?m rdf:type ontology:Q12973014 } UNION { ?m property:P1029 ?s . ?s rdf:type ontology:Q502895 . ?m rdf:type ontology:Q2235308 } } GROUP BY ?s } . FILTER ( ?d = ?r ) }
Alexandre Imperatori Mike Conway
Alexandre Imperatori and Mike Conway were crew members of max number of sports teams and ship types
Alexandre Imperatori Mike Conway
action argmax
action union
action find_reverse_tuple_counts
relation crew member
type common name
type sports team
action find_reverse_tuple_counts
relation crew member
type common name
type ship type
[[{'concept': 'sports team'}, {'concept': 'ship type'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?r ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { VALUES ( ?p ) { ( ontology:sports_team ) ( ontology:ship_type ) } . ?i rdf:type ?p } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?d ) WHERE { { ?m property:crew_member ?s . ?s rdf:type ontology:common_name . ?m rdf:type ontology:sports_team } UNION { ?m property:crew_member ?s . ?s rdf:type ontology:common_name . ?m rdf:type ontology:ship_type } } GROUP BY ?s } . FILTER ( ?d = ?r ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2039538 Q1716486
P27
Q1048835
USER
Which political territories are Karl Kokesch or Otto Klambauer a civilian of ?
OR((Q1716486,P27,c(Q1048835)), (Q2039538,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1716486
relation P27
action find
entity Q2039538
relation P27
type Q1048835
{'OR': [['Q1716486', 'P27', {'concept': 'Q1048835'}], ['Q2039538', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1716486 property:P27 ?j } UNION { resource:Q2039538 property:P27 ?j } } . ?j rdf:type ontology:Q1048835 }
Otto Klambauer Karl Kokesch
action filter_type
action union
action find
entity Karl Kokesch
relation country of citizenship
action find
entity Otto Klambauer
relation country of citizenship
type political territorial entity
{'OR': [['Karl Kokesch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Otto Klambauer', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Karl_Kokesch property:country_of_citizenship ?j } UNION { resource:Otto_Klambauer property:country_of_citizenship ?j } } . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
OR((Q1716486,P27,c(Q1048835)), (Q2039538,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1716486
relation P27
action find
entity Q2039538
relation P27
type Q1048835
[ANSWER] is Karl Kokesch or Otto Klambauer a civilian of
{'OR': [['Q1716486', 'P27', {'concept': 'Q1048835'}], ['Q2039538', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1716486 property:P27 ?j } UNION { resource:Q2039538 property:P27 ?j } } . ?j rdf:type ontology:Q1048835 }
Austria
Austria is Karl Kokesch or Otto Klambauer a civilian of
Austria
action filter_type
action union
action find
entity Karl Kokesch
relation country of citizenship
action find
entity Otto Klambauer
relation country of citizenship
type political territorial entity
{'OR': [['Karl Kokesch', 'country of citizenship', {'concept': 'political territorial entity'}], ['Otto Klambauer', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Karl_Kokesch property:country_of_citizenship ?j } UNION { resource:Otto_Klambauer property:country_of_citizenship ?j } } . ?j rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories are adjacent to that political territory ?
(Q40,P47,c(Q15617994))
action count
action filter_type
action find
entity Q40
relation P47
type Q15617994
['Q40', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Q40 property:P47 ?s . ?s rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Austria
relation shares border with
type designation for an administrative territorial entity
['Austria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Austria property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
7
Q213 Q214 Q215 Q347 Q28 Q39 Q38
(Q40,P47,c(Q15617994))
action count
action filter_type
action find
entity Q40
relation P47
type Q15617994
[ANSWER]
['Q40', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Q40 property:P47 ?s . ?s rdf:type ontology:Q15617994 }
Czech Republic Slovakia Slovenia Liechtenstein Hungary Switzerland Italy
7
action count
action filter_type
action find
entity Austria
relation shares border with
type designation for an administrative territorial entity
['Austria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Austria property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]