Simple Question (Direct)
Simple Question
Q3376387
P21
Q290
USER
Which sex does Pete Mahon possess ?
(Q3376387,P21,c(Q290))
action filter_type
action find
entity Q3376387
relation P21
type Q290
['Q3376387', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q3376387 property:P21 ?q . ?q rdf:type ontology:Q290 }
Pete Mahon
action filter_type
action find
entity Pete Mahon
relation gender
type sex
['Pete Mahon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Pete_Mahon property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3376387,P21,c(Q290))
action filter_type
action find
entity Q3376387
relation P21
type Q290
Pete Mahon possesses un [ANSWER]
['Q3376387', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q3376387 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
Pete Mahon possesses un male
male
action filter_type
action find
entity Pete Mahon
relation gender
type sex
['Pete Mahon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Pete_Mahon property:gender ?q . ?q rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q2088357 Q79529
USER
How many musical ensembles or chemical substances come from that sex ?
(c(Q2088357),P138,Q6581097) (c(Q79529),P138,Q6581097) (c(Q2088357),P138,Q6581097) (c(Q79529),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q2088357
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q79529
[{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q79529'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q79529'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:P138 resource:Q6581097 . ?k rdf:type ontology:Q79529 } UNION { ?k property:P138 resource:Q6581097 . ?k rdf:type ontology:Q2088357 } }
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type musical ensemble
action filter_type
action find_reverse
entity male
relation named after
type chemical substance
[{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'chemical substance'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'chemical substance'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:named_after resource:male . ?k rdf:type ontology:chemical_substance } UNION { ?k property:named_after resource:male . ?k rdf:type ontology:musical_ensemble } }
[]
musical ensemble chemical substance
SYSTEM
2
Q15181127 Q19833612
(c(Q2088357),P138,Q6581097) (c(Q79529),P138,Q6581097) (c(Q2088357),P138,Q6581097) (c(Q79529),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q2088357
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q79529
[ANSWER]
[{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q79529'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q79529'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:P138 resource:Q6581097 . ?k rdf:type ontology:Q79529 } UNION { ?k property:P138 resource:Q6581097 . ?k rdf:type ontology:Q2088357 } }
Ausekarane fabrièsite
2
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type musical ensemble
action filter_type
action find_reverse
entity male
relation named after
type chemical substance
[{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'chemical substance'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'chemical substance'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { ?k property:named_after resource:male . ?k rdf:type ontology:chemical_substance } UNION { ?k property:named_after resource:male . ?k rdf:type ontology:musical_ensemble } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3376387
P641
Q349
USER
What was the sport that Pete Mahon was a part of ?
(Q3376387,P641,c(Q349))
action filter_type
action find
entity Q3376387
relation P641
type Q349
['Q3376387', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q3376387 property:P641 ?a . ?a rdf:type ontology:Q349 }
Pete Mahon
action filter_type
action find
entity Pete Mahon
relation sport
type sport
['Pete Mahon', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Pete_Mahon property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3376387,P641,c(Q349))
action filter_type
action find
entity Q3376387
relation P641
type Q349
The sport that Pete Mahon was a part of was [ANSWER]
['Q3376387', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q3376387 property:P641 ?a . ?a rdf:type ontology:Q349 }
association football
The sport that Pete Mahon was a part of was association football
association football
action filter_type
action find
entity Pete Mahon
relation sport
type sport
['Pete Mahon', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Pete_Mahon property:sport ?a . ?a rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P2416
Q502895
USER
Which people participated in that sport ?
(c(Q502895),P2416,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P2416
type Q502895
[{'concept': 'Q502895'}, 'P2416', 'Q2736']
SELECT DISTINCT ?f WHERE { ?f property:P2416 resource:Q2736 . ?f rdf:type ontology:Q502895 }
association football
action filter_type
action find_reverse
entity association football
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'association football']
SELECT DISTINCT ?f WHERE { ?f property:sports_discipline_competed_in resource:association_football . ?f rdf:type ontology:common_name }
[]
common name
Q22998602 Q3939068 Q1975921
SYSTEM
Maximilian Mittelstädt, Roberto Policano, Agustín Gómez Pagóla
Q23902692 Q3939068 Q22687929 Q22998602 Q877207 Q1975921 Q23095388 Q24006307
(c(Q502895),P2416,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P2416
type Q502895
[ANSWERS] participated in that sport
[{'concept': 'Q502895'}, 'P2416', 'Q2736']
SELECT DISTINCT ?f WHERE { ?f property:P2416 resource:Q2736 . ?f rdf:type ontology:Q502895 }
Florian Kohls Roberto Policano Pedro Confesor Maximilian Mittelstädt Horst Bertram Agustín Gómez Pagóla Eberhard Dallagrazia Lion Schweers
Maximilian Mittelstädt, Roberto Policano and Agustín Gómez Pagóla participated in that sport
Maximilian Mittelstädt Roberto Policano Agustín Gómez Pagóla
action filter_type
action find_reverse
entity association football
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'association football']
SELECT DISTINCT ?f WHERE { ?f property:sports_discipline_competed_in resource:association_football . ?f rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3939068
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q3939068,P27,c(Q15617994))
action filter_type
action find
entity Q3939068
relation P27
type Q15617994
['Q3939068', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q3939068 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Roberto Policano
action filter_type
action find
entity Roberto Policano
relation country of citizenship
type designation for an administrative territorial entity
['Roberto Policano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Roberto_Policano property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q22998602
SYSTEM
Did you mean Maximilian Mittelstädt ?
Q22998602 Q3939068 Q1975921
(Q22998602,P27,c(Q15617994)) (Q3939068,P27,c(Q15617994)) (Q1975921,P27,c(Q15617994))
[ANSWER]
['Q22998602', 'P27', {'concept': 'Q15617994'}] ['Q3939068', 'P27', {'concept': 'Q15617994'}] ['Q1975921', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q3939068 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Maximilian Mittelstädt Roberto Policano Agustín Gómez Pagóla
Did you mean Maximilian Mittelstädt ?
Maximilian Mittelstädt
['Maximilian Mittelstädt', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Roberto Policano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Agustín Gómez Pagóla', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Roberto_Policano property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Roberto Policano. Could you tell me the answer for that?
(Q3939068,P27,c(Q15617994))
Q3939068
['Q3939068', 'P27', {'concept': 'Q15617994'}]
['Roberto Policano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q3939068,P27,c(Q15617994))
action filter_type
action find
entity Q3939068
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q3939068', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q3939068 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Italy
Italy is the country of citizenship of that person
Italy
action filter_type
action find
entity Roberto Policano
relation country of citizenship
type designation for an administrative territorial entity
['Roberto Policano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Roberto_Policano property:country_of_citizenship ?n . ?n 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 diplomatic relations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?s ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?a ) WHERE { ?f property:P530 ?u . ?f rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?f } } . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?t ) WHERE { ?z property:P530 ?y . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?t = ?s ) }
action argmin
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 ?z WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?s ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?a ) WHERE { ?f property:diplomatic_relation ?u . ?f rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?t ) WHERE { ?z property:diplomatic_relation ?y . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?t = ?s ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?s ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?a ) WHERE { ?f property:P530 ?u . ?f rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?f } } . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?t ) WHERE { ?z property:P530 ?y . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?t = ?s ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic relations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
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 ?z WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?s ) { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?a ) WHERE { ?f property:diplomatic_relation ?u . ?f rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?t ) WHERE { ?z property:diplomatic_relation ?y . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?t = ?s ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories holds diplomatic relationship with exactly 1 political territory ?
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?e ) WHERE { ?l property:P530 ?f . ?l rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?e = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?e ) WHERE { ?l property:diplomatic_relation ?f . ?l rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?e = 1 ) }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[ANSWERS] hold diplomatic relationship with exactly 1 political territory
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?e ) WHERE { ?l property:P530 ?f . ?l rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?e = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea hold diplomatic relationship with exactly 1 political territory
Gabon Grenada Papua New Guinea
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?e ) WHERE { ?l property:diplomatic_relation ?f . ?l rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?e = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories holds diplomatic relationship with max number of political territories ?
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?z ) { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?r ) WHERE { ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 . ?s property:P530 ?d } GROUP BY ?s } } . { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?v ) WHERE { ?e property:P530 ?n . ?n rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?v = ?z ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?z ) { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?r ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?s property:diplomatic_relation ?d } GROUP BY ?s } } . { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?v ) WHERE { ?e property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?v = ?z ) }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] holds diplomatic relationship with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?z ) { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?r ) WHERE { ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 . ?s property:P530 ?d } GROUP BY ?s } } . { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?v ) WHERE { ?e property:P530 ?n . ?n rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 } GROUP BY ?e } . FILTER ( ?v = ?z ) }
Australia
Australia holds diplomatic relationship with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?z ) { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?r ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?s property:diplomatic_relation ?d } GROUP BY ?s } } . { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?v ) WHERE { ?e property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?e } . FILTER ( ?v = ?z ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q408 Q7966857
P530
Q15617994
USER
Does Walung hold diplomatic relationship with that political territory ?
(Q408,P530,Q7966857)
action is_in
entity Q7966857
action find
entity Q408
relation P530
['Q408', 'P530', 'Q7966857']
ASK WHERE { resource:Q408 property:P530 resource:Q7966857 }
Australia Walung
action is_in
entity Walung
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Walung']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Walung }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q408,P530,Q7966857)
action is_in
entity Q7966857
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q7966857']
ASK WHERE { resource:Q408 property:P530 resource:Q7966857 }
No
action is_in
entity Walung
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Walung']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Walung }
[]