Simple Question (Direct)
Simple Question
Q1834045
P641
Q349
USER
What was the sport that Per Steffensen was a part of ?
(Q1834045,P641,c(Q349))
action filter_type
action find
entity Q1834045
relation P641
type Q349
['Q1834045', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q1834045 property:P641 ?q . ?q rdf:type ontology:Q349 }
Per Steffensen
action filter_type
action find
entity Per Steffensen
relation sport
type sport
['Per Steffensen', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Per_Steffensen property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1834045,P641,c(Q349))
action filter_type
action find
entity Q1834045
relation P641
type Q349
The sport that Per Steffensen was a part of was [ANSWER]
['Q1834045', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q1834045 property:P641 ?q . ?q rdf:type ontology:Q349 }
association football
The sport that Per Steffensen was a part of was association football
association football
action filter_type
action find
entity Per Steffensen
relation sport
type sport
['Per Steffensen', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Per_Steffensen property:sport ?q . ?q rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1834045
P21
Q290
USER
What is the sex of that person ?
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q1834045
relation P21
type Q290
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1834045 property:P21 ?x . ?x rdf:type ontology:Q290 }
Per Steffensen
action filter_type
action find
entity Per Steffensen
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Per_Steffensen property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q1834045
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1834045 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Per Steffensen
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Per_Steffensen property:gender ?x . ?x rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 2521 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2521
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?j >= 2521 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2521
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?j >= 2521 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2521
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?j >= 2521 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2521
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?j >= 2521 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1834045
P27
Q1048835
USER
Which political territory does that person belong to ?
action filter_type
action find
entity Q1834045
relation P27
type Q1048835
SELECT DISTINCT ?z WHERE { resource:Q1834045 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Per Steffensen
action filter_type
action find
entity Per Steffensen
relation country of citizenship
type political territorial entity
SELECT DISTINCT ?z WHERE { resource:Per_Steffensen property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
action filter_type
action find
entity Q1834045
relation P27
type Q1048835
That person belongs to a [ANSWER]
SELECT DISTINCT ?z WHERE { resource:Q1834045 property:P27 ?z . ?z rdf:type ontology:Q1048835 }
Denmark
That person belongs to a Denmark
Denmark
action filter_type
action find
entity Per Steffensen
relation country of citizenship
type political territorial entity
SELECT DISTINCT ?z WHERE { resource:Per_Steffensen property:country_of_citizenship ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q35 Q334
P530
Q1048835
USER
How many political territories have a diplomatic relationship with Denmark and Singapore ?
(Q35,P530,c(Q1048835)) (Q334,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q35
relation P530
type Q1048835
action filter_type
action find
entity Q334
relation P530
type Q1048835
['Q35', 'P530', {'concept': 'Q1048835'}] ['Q334', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { resource:Q35 property:P530 ?q . ?q rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 . resource:Q334 property:P530 ?q }
Denmark Singapore
action count
action intersection
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Singapore
relation diplomatic relation
type political territorial entity
['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Singapore', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { resource:Denmark property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity . resource:Singapore property:diplomatic_relation ?q }
[]
political territorial entity
SYSTEM
3
Q16 Q408 Q183
(Q35,P530,c(Q1048835)) (Q334,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q35
relation P530
type Q1048835
action filter_type
action find
entity Q334
relation P530
type Q1048835
[ANSWER]
['Q35', 'P530', {'concept': 'Q1048835'}] ['Q334', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { resource:Q35 property:P530 ?q . ?q rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 . resource:Q334 property:P530 ?q }
Canada Australia Germany
3
action count
action intersection
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Singapore
relation diplomatic relation
type political territorial entity
['Denmark', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Singapore', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { resource:Denmark property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity . resource:Singapore property:diplomatic_relation ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q35
P1001
Q1292279
USER
Which political borders apply to jurisdiction over that political territory ?
action filter_type
action find_reverse
entity Q35
relation P1001
type Q1292279
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1292279 . ?m property:P1001 resource:Q35 }
Denmark
action filter_type
action find_reverse
entity Denmark
relation applies to jurisdiction
type political border
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_border . ?m property:applies_to_jurisdiction resource:Denmark }
[]
political border
Q21685994 Q16025208 Q17351743
SYSTEM
Denmark–Sweden border, Denmark–United Kingdom border, Denmark–Norway border
Q21685994 Q16025208 Q17351743 Q2422197 Q3089067 Q16025014 Q14905346
action filter_type
action find_reverse
entity Q35
relation P1001
type Q1292279
[ANSWERS] apply to jurisdiction over that political territory
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1292279 . ?m property:P1001 resource:Q35 }
Denmark–Sweden border Denmark–United Kingdom border Denmark–Norway border Denmark–Germany border Denmark–Iceland border Canada–Denmark border Denmark–Poland border
Denmark–Sweden border, Denmark–United Kingdom border and Denmark–Norway border apply to jurisdiction over that political territory
Denmark–Sweden border Denmark–United Kingdom border Denmark–Norway border
action filter_type
action find_reverse
entity Denmark
relation applies to jurisdiction
type political border
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_border . ?m property:applies_to_jurisdiction resource:Denmark }
[]
Clarification
Simple Question|Single Entity|Indirect
Q21685994
P17
Q1048835
USER
Which political territory is that political border situated in ?
(Q21685994,P17,c(Q1048835))
action filter_type
action find
entity Q21685994
relation P17
type Q1048835
['Q21685994', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q21685994 property:P17 ?g . ?g rdf:type ontology:Q1048835 }
Denmark–Sweden border
action filter_type
action find
entity Denmark–Sweden border
relation country
type political territorial entity
['Denmark–Sweden border', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Denmark–Sweden_border property:country ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q21685994
SYSTEM
Did you mean Denmark–Sweden border ?
Q21685994 Q16025208 Q17351743
(Q21685994,P17,c(Q1048835)) (Q16025208,P17,c(Q1048835)) (Q17351743,P17,c(Q1048835))
[ANSWER]
['Q21685994', 'P17', {'concept': 'Q1048835'}] ['Q16025208', 'P17', {'concept': 'Q1048835'}] ['Q17351743', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q21685994 property:P17 ?g . ?g rdf:type ontology:Q1048835 }
Denmark–Sweden border Denmark–United Kingdom border Denmark–Norway border
Did you mean Denmark–Sweden border ?
Denmark–Sweden border
['Denmark–Sweden border', 'country', {'concept': 'political territorial entity'}] ['Denmark–United Kingdom border', 'country', {'concept': 'political territorial entity'}] ['Denmark–Norway border', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Denmark–Sweden_border property:country ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q21685994,P17,c(Q1048835))
['Q21685994', 'P17', {'concept': 'Q1048835'}]
['Denmark–Sweden border', 'country', {'concept': 'political territorial entity'}]
[]
Q35
SYSTEM
Denmark
Q35
(Q21685994,P17,c(Q1048835))
action filter_type
action find
entity Q21685994
relation P17
type Q1048835
That political border is situated in [ANSWER]
['Q21685994', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q21685994 property:P17 ?g . ?g rdf:type ontology:Q1048835 }
Denmark
That political border is situated in Denmark
Denmark
action filter_type
action find
entity Denmark–Sweden border
relation country
type political territorial entity
['Denmark–Sweden border', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Denmark–Sweden_border property:country ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q35
P27
Q3243677 Q440831
USER
How many Guantanamo Bay detaineess and Characterss in Hamlet are a citizen of Denmark ?
(c(Q3243677),P27,Q35) (c(Q440831),P27,Q35)
action count
action union
action filter_type
action find_reverse
entity Q35
relation P27
type Q3243677
action filter_type
action find_reverse
entity Q35
relation P27
type Q440831
[{'concept': 'Q3243677'}, 'P27', 'Q35'] [{'concept': 'Q440831'}, 'P27', 'Q35']
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:P27 resource:Q35 . ?w rdf:type ontology:Q3243677 } UNION { ?w rdf:type ontology:Q440831 . ?w property:P27 resource:Q35 } }
Denmark
action count
action union
action filter_type
action find_reverse
entity Denmark
relation country of citizenship
type Guantanamo Bay detainees
action filter_type
action find_reverse
entity Denmark
relation country of citizenship
type Characters in Hamlet
[{'concept': 'Guantanamo Bay detainees'}, 'country of citizenship', 'Denmark'] [{'concept': 'Characters in Hamlet'}, 'country of citizenship', 'Denmark']
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:country_of_citizenship resource:Denmark . ?w rdf:type ontology:Guantanamo_Bay_detainees } UNION { ?w rdf:type ontology:Characters_in_Hamlet . ?w property:country_of_citizenship resource:Denmark } }
[]
Guantanamo Bay detainees Characters in Hamlet
SYSTEM
1 Guantanamo Bay detaineess and 5 Characterss in Hamlet
Q1811294 Q2471533 Q780191 Q1813659 Q1800888 Q5219827
(c(Q3243677),P27,Q35) (c(Q440831),P27,Q35)
action count
action union
action filter_type
action find_reverse
entity Q35
relation P27
type Q3243677
action filter_type
action find_reverse
entity Q35
relation P27
type Q440831
[ANSWER]
[{'concept': 'Q3243677'}, 'P27', 'Q35'] [{'concept': 'Q440831'}, 'P27', 'Q35']
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:P27 resource:Q35 . ?w rdf:type ontology:Q3243677 } UNION { ?w rdf:type ontology:Q440831 . ?w property:P27 resource:Q35 } }
King Claudius Laertes Polonius Ghost Ophelia Danish detainees at Guantanamo Bay
1 Guantanamo Bay detaineess and 5 Characterss in Hamlet
action count
action union
action filter_type
action find_reverse
entity Denmark
relation country of citizenship
type Guantanamo Bay detainees
action filter_type
action find_reverse
entity Denmark
relation country of citizenship
type Characters in Hamlet
[{'concept': 'Guantanamo Bay detainees'}, 'country of citizenship', 'Denmark'] [{'concept': 'Characters in Hamlet'}, 'country of citizenship', 'Denmark']
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:country_of_citizenship resource:Denmark . ?w rdf:type ontology:Guantanamo_Bay_detainees } UNION { ?w rdf:type ontology:Characters_in_Hamlet . ?w property:country_of_citizenship resource:Denmark } }
[]