Simple Question (Direct)
Simple Question
Q896834
P641
Q349
USER
Which sport was Brad McDonald a part of ?
(Q896834,P641,c(Q349))
action filter_type
action find
entity Q896834
relation P641
type Q349
['Q896834', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q896834 property:P641 ?g . ?g rdf:type ontology:Q349 }
Brad McDonald
action filter_type
action find
entity Brad McDonald
relation sport
type sport
['Brad McDonald', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:Brad_McDonald property:sport ?g . ?g rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q896834,P641,c(Q349))
action filter_type
action find
entity Q896834
relation P641
type Q349
Brad McDonald was in [ANSWER]
['Q896834', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q896834 property:P641 ?g . ?g rdf:type ontology:Q349 }
association football
Brad McDonald was in association football
association football
action filter_type
action find
entity Brad McDonald
relation sport
type sport
['Brad McDonald', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:Brad_McDonald property:sport ?g . ?g rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q896834
P27
Q1048835
USER
Which political territory is that person an inhabitant of ?
(Q2736,P27,c(Q1048835))
action filter_type
action find
entity Q896834
relation P27
type Q1048835
['Q2736', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q896834 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Brad McDonald
action filter_type
action find
entity Brad McDonald
relation country of citizenship
type political territorial entity
['association football', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Brad_McDonald property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q2736,P27,c(Q1048835))
action filter_type
action find
entity Q896834
relation P27
type Q1048835
[ANSWER] is that person an inhabitant of
['Q2736', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q896834 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Australia
Australia is that person an inhabitant of
Australia
action filter_type
action find
entity Brad McDonald
relation country of citizenship
type political territorial entity
['association football', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Brad_McDonald property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories holds diplomatic relationship with approximately 2 political territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?t ) WHERE { ?p property:P530 ?a . ?a rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?t = 2 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?t ) WHERE { ?p property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?t = 2 ) }
[]
designation for an administrative territorial entity political territorial entity
Q55 Q148 Q17
SYSTEM
Netherlands, People's Republic of China, Japan
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[ANSWERS] hold diplomatic relationship with approximately 2 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?t ) WHERE { ?p property:P530 ?a . ?a rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?t = 2 ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
Netherlands, People's Republic of China and Japan hold diplomatic relationship with approximately 2 political territories
Netherlands People's Republic of China Japan
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?t ) WHERE { ?p property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?t = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17 Q35
P530
Q15617994
USER
How many administrative territories have tactful political relations with Japan and Denmark ?
(c(Q15617994),P530,Q17) (c(Q15617994),P530,Q35)
action count
action intersection
action filter_type
action find_reverse
entity Q17
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q35
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q17'] [{'concept': 'Q15617994'}, 'P530', 'Q35']
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { ?y property:P530 resource:Q17 . ?y rdf:type ontology:Q15617994 . ?y property:P530 resource:Q35 . ?y rdf:type ontology:Q15617994 }
Japan Denmark
action count
action intersection
action filter_type
action find_reverse
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Denmark
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Japan'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Denmark']
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { ?y property:diplomatic_relation resource:Japan . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation resource:Denmark . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
3
Q155 Q38 Q230
(c(Q15617994),P530,Q17) (c(Q15617994),P530,Q35)
action count
action intersection
action filter_type
action find_reverse
entity Q17
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q35
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q17'] [{'concept': 'Q15617994'}, 'P530', 'Q35']
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { ?y property:P530 resource:Q17 . ?y rdf:type ontology:Q15617994 . ?y property:P530 resource:Q35 . ?y rdf:type ontology:Q15617994 }
Brazil Italy Georgia
3
action count
action intersection
action filter_type
action find_reverse
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Denmark
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Japan'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Denmark']
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { ?y property:diplomatic_relation resource:Japan . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation resource:Denmark . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]