Simple Question (Direct)
Simple Question
Q7640101
P21
Q290
USER
What is the sex of Sung Lin Yung ?
(Q7640101,P21,c(Q290))
action filter_type
action find
entity Q7640101
relation P21
type Q290
['Q7640101', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q7640101 property:P21 ?o . ?o rdf:type ontology:Q290 }
Sung Lin Yung
action filter_type
action find
entity Sung Lin Yung
relation gender
type sex
['Sung Lin Yung', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Sung_Lin_Yung property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7640101,P21,c(Q290))
action filter_type
action find
entity Q7640101
relation P21
type Q290
The sex of Sung Lin Yung is a [ANSWER]
['Q7640101', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q7640101 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
The sex of Sung Lin Yung is a male
male
action filter_type
action find
entity Sung Lin Yung
relation gender
type sex
['Sung Lin Yung', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Sung_Lin_Yung property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7640101
P641
Q349
USER
What was the sport that Sung Lin Yung was a part of ?
(Q7640101,P641,c(Q349))
action filter_type
action find
entity Q7640101
relation P641
type Q349
['Q7640101', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q7640101 property:P641 ?f . ?f rdf:type ontology:Q349 }
Sung Lin Yung
action filter_type
action find
entity Sung Lin Yung
relation sport
type sport
['Sung Lin Yung', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Sung_Lin_Yung property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7640101,P641,c(Q349))
action filter_type
action find
entity Q7640101
relation P641
type Q349
The sport that Sung Lin Yung was a part of was the [ANSWER]
['Q7640101', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q7640101 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
The sport that Sung Lin Yung was a part of was the association football
association football
action filter_type
action find
entity Sung Lin Yung
relation sport
type sport
['Sung Lin Yung', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Sung_Lin_Yung property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7640101
P19
Q515
USER
Which city is the place of birth of Sung Lin Yung ?
(Q7640101,P19,c(Q515))
action filter_type
action find
entity Q7640101
relation P19
type Q515
['Q7640101', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q515 . resource:Q7640101 property:P19 ?v }
Sung Lin Yung
action filter_type
action find
entity Sung Lin Yung
relation place of birth
type city
['Sung Lin Yung', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:city . resource:Sung_Lin_Yung property:place_of_birth ?v }
[]
city
Q11736
SYSTEM
Tianjin
Q11736
(Q7640101,P19,c(Q515))
action filter_type
action find
entity Q7640101
relation P19
type Q515
[ANSWER] is the place of birth of Sung Lin Yung
['Q7640101', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q515 . resource:Q7640101 property:P19 ?v }
Tianjin
Tianjin is the place of birth of Sung Lin Yung
Tianjin
action filter_type
action find
entity Sung Lin Yung
relation place of birth
type city
['Sung Lin Yung', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:city . resource:Sung_Lin_Yung property:place_of_birth ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11736
P609
Q34442
USER
Which roads have that city as their terminus location ?
(c(Q34442),P609,Q11736)
action filter_type
action find_reverse
entity Q11736
relation P609
type Q34442
[{'concept': 'Q34442'}, 'P609', 'Q11736']
SELECT DISTINCT ?d WHERE { ?d property:P609 resource:Q11736 . ?d rdf:type ontology:Q34442 }
Tianjin
action filter_type
action find_reverse
entity Tianjin
relation terminus location
type road
[{'concept': 'road'}, 'terminus location', 'Tianjin']
SELECT DISTINCT ?d WHERE { ?d property:terminus_location resource:Tianjin . ?d rdf:type ontology:road }
[]
road
Q834122 Q19840125 Q10883203
SYSTEM
Jingjintang Expressway, G0211 Tianjin–Shijiazhuang Expressway, Beijing–Tianjin Expressway
Q834122 Q19840125 Q10883203
(c(Q34442),P609,Q11736)
action filter_type
action find_reverse
entity Q11736
relation P609
type Q34442
[ANSWERS] have that city as their terminus location
[{'concept': 'Q34442'}, 'P609', 'Q11736']
SELECT DISTINCT ?d WHERE { ?d property:P609 resource:Q11736 . ?d rdf:type ontology:Q34442 }
Jingjintang Expressway G0211 Tianjin–Shijiazhuang Expressway Beijing–Tianjin Expressway
Jingjintang Expressway, G0211 Tianjin–Shijiazhuang Expressway and Beijing–Tianjin Expressway have that city as their terminus location
Jingjintang Expressway G0211 Tianjin–Shijiazhuang Expressway Beijing–Tianjin Expressway
action filter_type
action find_reverse
entity Tianjin
relation terminus location
type road
[{'concept': 'road'}, 'terminus location', 'Tianjin']
SELECT DISTINCT ?d WHERE { ?d property:terminus_location resource:Tianjin . ?d rdf:type ontology:road }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q4348749
P559
Q12280 Q34442
USER
Which bridges serve as the endpoint for less number of roads than Lidingöbron ?
(c(Q34442),P559,c(Q12280))
action less
action find_reverse_tuple_counts
relation P559
type Q12280
type Q34442
action count
action filter_type
action find_reverse
entity Q4348749
relation P559
type Q34442
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q12280'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:P559 ?n . ?q rdf:type ontology:Q34442 . ?n rdf:type ontology:Q12280 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:P559 resource:Q4348749 . ?u rdf:type ontology:Q34442 } } . FILTER ( ?z < ?a ) }
Lidingöbron
action less
action find_reverse_tuple_counts
relation terminus
type bridge
type road
action count
action filter_type
action find_reverse
entity Lidingöbron
relation terminus
type road
[{'concept': 'road'}, 'terminus', {'concept': 'bridge'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:terminus ?n . ?q rdf:type ontology:road . ?n rdf:type ontology:bridge } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:terminus resource:Lidingöbron . ?u rdf:type ontology:road } } . FILTER ( ?z < ?a ) }
[]
bridge road
Q1596245 Q944453
SYSTEM
Sault Ste. Marie International Bridge, Langebro
Q1596245 Q944453
(c(Q34442),P559,c(Q12280))
action less
action find_reverse_tuple_counts
relation P559
type Q12280
type Q34442
action count
action filter_type
action find_reverse
entity Q4348749
relation P559
type Q34442
[ANSWERS] serve as the endpoint for less number of roads than Lidingöbron
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q12280'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:P559 ?n . ?q rdf:type ontology:Q34442 . ?n rdf:type ontology:Q12280 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:P559 resource:Q4348749 . ?u rdf:type ontology:Q34442 } } . FILTER ( ?z < ?a ) }
Sault Ste. Marie International Bridge Langebro
Sault Ste. Marie International Bridge and Langebro serve as the endpoint for less number of roads than Lidingöbron
Sault Ste. Marie International Bridge Langebro
action less
action find_reverse_tuple_counts
relation terminus
type bridge
type road
action count
action filter_type
action find_reverse
entity Lidingöbron
relation terminus
type road
[{'concept': 'road'}, 'terminus', {'concept': 'bridge'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?z ) WHERE { ?q property:terminus ?n . ?q rdf:type ontology:road . ?n rdf:type ontology:bridge } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:terminus resource:Lidingöbron . ?u rdf:type ontology:road } } . FILTER ( ?z < ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q12060368
P559
Q12280 Q34442
USER
And also tell me about Højbro?
(c(Q34442),P559,c(Q12280))
action less
action find_reverse_tuple_counts
relation P559
type Q12280
type Q34442
action count
action filter_type
action find
entity Q12060368
relation P559
type Q34442
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q12280'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?c ) WHERE { ?d property:P559 ?t . ?t rdf:type ontology:Q12280 . ?d rdf:type ontology:Q34442 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Q12060368 property:P559 ?n . ?n rdf:type ontology:Q34442 } } . FILTER ( ?c < ?p ) }
Højbro
action less
action find_reverse_tuple_counts
relation terminus
type bridge
type road
action count
action filter_type
action find
entity Højbro
relation terminus
type road
[{'concept': 'road'}, 'terminus', {'concept': 'bridge'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?c ) WHERE { ?d property:terminus ?t . ?t rdf:type ontology:bridge . ?d rdf:type ontology:road } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Højbro property:terminus ?n . ?n rdf:type ontology:road } } . FILTER ( ?c < ?p ) }
[]
bridge road
Q7596524 Q6444547 Q4348749
SYSTEM
Stadshusbron, Kungsbron, Lidingöbron
Q7418754 Q846945 Q7310179 Q5261596 Q1596245 Q6444547 Q6547919 Q6112769 Q5221329 Q7334096 Q10438492 Q944453 Q7597303 Q1698812 Q7596524 Q4348749
(c(Q34442),P559,c(Q12280))
action less
action find_reverse_tuple_counts
relation P559
type Q12280
type Q34442
action count
action filter_type
action find
entity Q12060368
relation P559
type Q34442
[ANSWERS]
[{'concept': 'Q34442'}, 'P559', {'concept': 'Q12280'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?c ) WHERE { ?d property:P559 ?t . ?t rdf:type ontology:Q12280 . ?d rdf:type ontology:Q34442 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Q12060368 property:P559 ?n . ?n rdf:type ontology:Q34442 } } . FILTER ( ?c < ?p ) }
Sankt Eriksbron Skanstullsbron Reimersholmsbron Skeppsholmsbron Sault Ste. Marie International Bridge Kungsbron Liljeholmsbron Kastellholmsbron Danvik bridge Riksbron Bällsta bridge Langebro Stallbron Johanneshovsbron Stadshusbron Lidingöbron
Stadshusbron Kungsbron Lidingöbron
action less
action find_reverse_tuple_counts
relation terminus
type bridge
type road
action count
action filter_type
action find
entity Højbro
relation terminus
type road
[{'concept': 'road'}, 'terminus', {'concept': 'bridge'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?c ) WHERE { ?d property:terminus ?t . ?t rdf:type ontology:bridge . ?d rdf:type ontology:road } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { resource:Højbro property:terminus ?n . ?n rdf:type ontology:road } } . FILTER ( ?c < ?p ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5833690 Q834122
P27 P17
Q15617994
USER
Which administrative territories are Jingjintang Expressway a part of or are Enrique Papatino an inhabitant of ?
OR((Q834122,P17,c(Q15617994)), (Q5833690,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q834122
relation P17
action find
entity Q5833690
relation P27
type Q15617994
{'OR': [['Q834122', 'P17', {'concept': 'Q15617994'}], ['Q5833690', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q834122 property:P17 ?c } UNION { resource:Q5833690 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Enrique Papatino Jingjintang Expressway
action filter_type
action union
action find
entity Jingjintang Expressway
relation country
action find
entity Enrique Papatino
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jingjintang Expressway', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Enrique Papatino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Jingjintang_Expressway property:country ?c } UNION { resource:Enrique_Papatino property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q414
SYSTEM
People's Republic of China, Argentina
Q148 Q414
OR((Q834122,P17,c(Q15617994)), (Q5833690,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q834122
relation P17
action find
entity Q5833690
relation P27
type Q15617994
[ANSWERS] are Jingjintang Expressway a part of or are Enrique Papatino an inhabitant of
{'OR': [['Q834122', 'P17', {'concept': 'Q15617994'}], ['Q5833690', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q834122 property:P17 ?c } UNION { resource:Q5833690 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
People's Republic of China Argentina
People's Republic of China and Argentina are Jingjintang Expressway a part of or are Enrique Papatino an inhabitant of
People's Republic of China Argentina
action filter_type
action union
action find
entity Jingjintang Expressway
relation country
action find
entity Enrique Papatino
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jingjintang Expressway', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Enrique Papatino', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Jingjintang_Expressway property:country ?c } UNION { resource:Enrique_Papatino property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5833690
P106
Q151885 Q12737077
USER
How many concepts and occupations are the job of Enrique Papatino ?
(Q5833690,P106,c(Q151885)) (Q5833690,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q5833690
relation P106
type Q151885
action filter_type
action find
entity Q5833690
relation P106
type Q12737077
['Q5833690', 'P106', {'concept': 'Q151885'}] ['Q5833690', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?y ) { ( ontology:Q151885 ) ( ontology:Q12737077 ) } . ?a rdf:type ?y }
Enrique Papatino
action count
action union
action filter_type
action find
entity Enrique Papatino
relation occupation
type concept
action filter_type
action find
entity Enrique Papatino
relation occupation
type occupation
['Enrique Papatino', 'occupation', {'concept': 'concept'}] ['Enrique Papatino', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?y ) { ( ontology:concept ) ( ontology:occupation ) } . ?a rdf:type ?y }
[]
concept occupation
SYSTEM
1 concepts and 1 occupations
Q33999 Q214917
(Q5833690,P106,c(Q151885)) (Q5833690,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q5833690
relation P106
type Q151885
action filter_type
action find
entity Q5833690
relation P106
type Q12737077
[ANSWER]
['Q5833690', 'P106', {'concept': 'Q151885'}] ['Q5833690', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?y ) { ( ontology:Q151885 ) ( ontology:Q12737077 ) } . ?a rdf:type ?y }
actor playwright
1 concepts and 1 occupations
action count
action union
action filter_type
action find
entity Enrique Papatino
relation occupation
type concept
action filter_type
action find
entity Enrique Papatino
relation occupation
type occupation
['Enrique Papatino', 'occupation', {'concept': 'concept'}] ['Enrique Papatino', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { VALUES ( ?y ) { ( ontology:concept ) ( ontology:occupation ) } . ?a rdf:type ?y }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q8009078 Q12060368
P27 P17
Q1048835
USER
Which political territories are Højbro present in or are the countries of citizenship of William Fisher Pearson ?
OR((Q12060368,P17,c(Q1048835)), (Q8009078,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q12060368
relation P17
action find
entity Q8009078
relation P27
type Q1048835
{'OR': [['Q12060368', 'P17', {'concept': 'Q1048835'}], ['Q8009078', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q12060368 property:P17 ?z } UNION { resource:Q8009078 property:P27 ?z } } . ?z rdf:type ontology:Q1048835 }
William Fisher Pearson Højbro
action filter_type
action union
action find
entity Højbro
relation country
action find
entity William Fisher Pearson
relation country of citizenship
type political territorial entity
{'OR': [['Højbro', 'country', {'concept': 'political territorial entity'}], ['William Fisher Pearson', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Højbro property:country ?z } UNION { resource:William_Fisher_Pearson property:country_of_citizenship ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q35
SYSTEM
New Zealand, Denmark
Q664 Q35
OR((Q12060368,P17,c(Q1048835)), (Q8009078,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q12060368
relation P17
action find
entity Q8009078
relation P27
type Q1048835
[ANSWERS]
{'OR': [['Q12060368', 'P17', {'concept': 'Q1048835'}], ['Q8009078', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q12060368 property:P17 ?z } UNION { resource:Q8009078 property:P27 ?z } } . ?z rdf:type ontology:Q1048835 }
New Zealand Denmark
Which political territories are Højbro present in or are the countries of citizenship of William Fisher Pearson
New Zealand Denmark
action filter_type
action union
action find
entity Højbro
relation country
action find
entity William Fisher Pearson
relation country of citizenship
type political territorial entity
{'OR': [['Højbro', 'country', {'concept': 'political territorial entity'}], ['William Fisher Pearson', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Højbro property:country ?z } UNION { resource:William_Fisher_Pearson property:country_of_citizenship ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]