Simple Question (Direct)
Simple Question
Q15621407
P21
Q290
USER
Which sex does Kazuki Yazawa possess ?
(Q15621407,P21,c(Q290))
action filter_type
action find
entity Q15621407
relation P21
type Q290
['Q15621407', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q15621407 property:P21 ?r }
Kazuki Yazawa
action filter_type
action find
entity Kazuki Yazawa
relation gender
type sex
['Kazuki Yazawa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Kazuki_Yazawa property:gender ?r }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15621407,P21,c(Q290))
action filter_type
action find
entity Q15621407
relation P21
type Q290
Kazuki Yazawa possesses a [ANSWER]
['Q15621407', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q15621407 property:P21 ?r }
male
Kazuki Yazawa possesses a male
male
action filter_type
action find
entity Kazuki Yazawa
relation gender
type sex
['Kazuki Yazawa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Kazuki_Yazawa property:gender ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15621407
P1344
Q2312410
USER
Which sport discipline did Kazuki Yazawa take part in ?
(Q15621407,P1344,c(Q2312410))
action filter_type
action find
entity Q15621407
relation P1344
type Q2312410
['Q15621407', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q2312410 . resource:Q15621407 property:P1344 ?h }
Kazuki Yazawa
action filter_type
action find
entity Kazuki Yazawa
relation participant of
type sport discipline
['Kazuki Yazawa', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sport_discipline . resource:Kazuki_Yazawa property:participant_of ?h }
[]
sport discipline
Q19706972
SYSTEM
canoeing at the 2016 Summer Olympics
Q19706972
(Q15621407,P1344,c(Q2312410))
action filter_type
action find
entity Q15621407
relation P1344
type Q2312410
Kazuki Yazawa took in part in [ANSWER]
['Q15621407', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q2312410 . resource:Q15621407 property:P1344 ?h }
canoeing at the 2016 Summer Olympics
Kazuki Yazawa took in part in canoeing at the 2016 Summer Olympics
canoeing at the 2016 Summer Olympics
action filter_type
action find
entity Kazuki Yazawa
relation participant of
type sport discipline
['Kazuki Yazawa', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sport_discipline . resource:Kazuki_Yazawa property:participant_of ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q25714027
Q2312410
USER
And also tell me about Mackenzie Darragh?
(Q25714027,P1344,c(Q2312410))
action filter_type
action find
entity Q25714027
relation P1344
type Q2312410
['Q25714027', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ?y WHERE { resource:Q25714027 property:P1344 ?y . ?y rdf:type ontology:Q2312410 }
Mackenzie Darragh
action filter_type
action find
entity Mackenzie Darragh
relation participant of
type sport discipline
['Mackenzie Darragh', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ?y WHERE { resource:Mackenzie_Darragh property:participant_of ?y . ?y rdf:type ontology:sport_discipline }
[]
sport discipline
Q8022145
SYSTEM
swimming at the 2016 Summer Olympics
Q8022145
(Q25714027,P1344,c(Q2312410))
action filter_type
action find
entity Q25714027
relation P1344
type Q2312410
[ANSWER]
['Q25714027', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ?y WHERE { resource:Q25714027 property:P1344 ?y . ?y rdf:type ontology:Q2312410 }
swimming at the 2016 Summer Olympics
swimming at the 2016 Summer Olympics
action filter_type
action find
entity Mackenzie Darragh
relation participant of
type sport discipline
['Mackenzie Darragh', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ?y WHERE { resource:Mackenzie_Darragh property:participant_of ?y . ?y rdf:type ontology:sport_discipline }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P115
Q1076486 Q811979 Q2312410
USER
Which sport disciplines have min number of sports venues and architectural structures as their home ground ?
(c(Q2312410),P115,c(Q1076486)|c(Q811979))
action argmin
action union
action find_tuple_counts
relation P115
type Q2312410
type Q1076486
action find_tuple_counts
relation P115
type Q2312410
type Q811979
[{'concept': 'Q2312410'}, 'P115', [{'concept': 'Q1076486'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?r ) { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?m ) WHERE { ?j rdf:type ?i . VALUES ( ?i ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } } GROUP BY ?y } } . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } } GROUP BY ?k } . FILTER ( ?d = ?r ) }
action argmin
action union
action find_tuple_counts
relation home venue
type sport discipline
type sports venue
action find_tuple_counts
relation home venue
type sport discipline
type architectural structure
[{'concept': 'sport discipline'}, 'home venue', [{'concept': 'sports venue'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?r ) { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?m ) WHERE { ?j rdf:type ?i . VALUES ( ?i ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } } GROUP BY ?y } } . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?n . VALUES ( ?n ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } } GROUP BY ?k } . FILTER ( ?d = ?r ) }
[]
sports venue architectural structure sport discipline
Q19706972 Q15284197 Q11896072
SYSTEM
canoeing at the 2016 Summer Olympics, fencing at the 2016 Summer Olympics, synchronized swimming at the 2016 Summer Olympics
Q11901844 Q15284197 Q11896072 Q19706972 Q5392247 Q11867321 Q11894270 Q18416810 Q11886402 Q7400384 Q19710306 Q18564445 Q11884985 Q11899349 Q18020584
(c(Q2312410),P115,c(Q1076486)|c(Q811979))
action argmin
action union
action find_tuple_counts
relation P115
type Q2312410
type Q1076486
action find_tuple_counts
relation P115
type Q2312410
type Q811979
[ANSWERS] have min number of sports venues and architectural structures as their home ground
[{'concept': 'Q2312410'}, 'P115', [{'concept': 'Q1076486'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?r ) { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?m ) WHERE { ?j rdf:type ?i . VALUES ( ?i ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } } GROUP BY ?y } } . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?n . VALUES ( ?n ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } } GROUP BY ?k } . FILTER ( ?d = ?r ) }
gymnastics at the 2016 Summer Olympics fencing at the 2016 Summer Olympics synchronized swimming at the 2016 Summer Olympics canoeing at the 2016 Summer Olympics table tennis at the 2016 Summer Olympics judo at the 2016 Summer Olympics rowing at the 2016 Summer Olympics triathlon at the 2016 Summer Olympics wrestling at the 2016 Summer Olympics sailing at the 2016 Summer Olympics taekwondo at the 2016 Summer Olympics weightlifting at the 2016 Summer Olympics boxing at the 2016 Summer Olympics diving at the 2016 Summer Olympics shooting at the 2016 Summer Olympics
Canoeing at the 2016 Summer Olympics, fencing at the 2016 Summer Olympics and synchronized swimming at the 2016 Summer Olympics have min number of sports venues and architectural structures as their home ground
canoeing at the 2016 Summer Olympics fencing at the 2016 Summer Olympics synchronized swimming at the 2016 Summer Olympics
action argmin
action union
action find_tuple_counts
relation home venue
type sport discipline
type sports venue
action find_tuple_counts
relation home venue
type sport discipline
type architectural structure
[{'concept': 'sport discipline'}, 'home venue', [{'concept': 'sports venue'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?r ) { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?m ) WHERE { ?j rdf:type ?i . VALUES ( ?i ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } } GROUP BY ?y } } . { SELECT DISTINCT ?k ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?n . VALUES ( ?n ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } } GROUP BY ?k } . FILTER ( ?d = ?r ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that sport discipline a part of ?
(Q15284197,P17,c(Q15617994))
['Q15284197', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q15284197 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['fencing at the 2016 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:fencing_at_the_2016_Summer_Olympics property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q11896072
SYSTEM
Did you mean synchronized swimming at the 2016 Summer Olympics ?
(Q19706972,P17,c(Q15617994)) (Q15284197,P17,c(Q15617994)) (Q11896072,P17,c(Q15617994))
[ANSWER]
['Q19706972', 'P17', {'concept': 'Q15617994'}] ['Q15284197', 'P17', {'concept': 'Q15617994'}] ['Q11896072', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q15284197 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean synchronized swimming at the 2016 Summer Olympics ?
synchronized swimming at the 2016 Summer Olympics
['canoeing at the 2016 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}] ['fencing at the 2016 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}] ['synchronized swimming at the 2016 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:fencing_at_the_2016_Summer_Olympics property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant fencing at the 2016 Summer Olympics. Could you tell me the answer for that?
(Q15284197,P17,c(Q15617994))
Q15284197
['Q15284197', 'P17', {'concept': 'Q15617994'}]
['fencing at the 2016 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q155
(Q15284197,P17,c(Q15617994))
[ANSWER]
['Q15284197', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q15284197 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Brazil
1
['fencing at the 2016 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:fencing_at_the_2016_Summer_Olympics property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q34360 Q15284197
P47 P17
Q15617994
USER
Which administrative territories are fencing at the 2016 Summer Olympics present in or are adjacent to Cartura ?
OR((Q15284197,P17,c(Q15617994)), (Q34360,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q15284197
relation P17
action find
entity Q34360
relation P47
type Q15617994
{'OR': [['Q15284197', 'P17', {'concept': 'Q15617994'}], ['Q34360', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q15284197 property:P17 ?z } UNION { resource:Q34360 property:P47 ?z } } . ?z rdf:type ontology:Q15617994 }
Cartura fencing at the 2016 Summer Olympics
action filter_type
action union
action find
entity fencing at the 2016 Summer Olympics
relation country
action find
entity Cartura
relation shares border with
type designation for an administrative territorial entity
{'OR': [['fencing at the 2016 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Cartura', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:fencing_at_the_2016_Summer_Olympics property:country ?z } UNION { resource:Cartura property:shares_border_with ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34519 Q155 Q34674 Q34385 Q34369 Q34368 Q34297 Q34673 Q34557
SYSTEM
Maserà di Padova, Brazil, Bovolenta, Conselve, San Pietro Viminario, Casalserugo, Pernumia, Terrassa Padovana, Due Carrare
Q34519 Q155 Q34674 Q34385 Q34369 Q34368 Q34297 Q34673 Q34557
OR((Q15284197,P17,c(Q15617994)), (Q34360,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q15284197
relation P17
action find
entity Q34360
relation P47
type Q15617994
[ANSWERS] are fencing at the 2016 Summer Olympics present in or are adjacent to Cartura
{'OR': [['Q15284197', 'P17', {'concept': 'Q15617994'}], ['Q34360', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q15284197 property:P17 ?z } UNION { resource:Q34360 property:P47 ?z } } . ?z rdf:type ontology:Q15617994 }
Maserà di Padova Brazil Bovolenta Conselve San Pietro Viminario Casalserugo Pernumia Terrassa Padovana Due Carrare
Maserà di Padova, Brazil, Bovolenta, Conselve, San Pietro Viminario, Casalserugo, Pernumia, Terrassa Padovana and Due Carrare are fencing at the 2016 Summer Olympics present in or are adjacent to Cartura
Maserà di Padova Brazil Bovolenta Conselve San Pietro Viminario Casalserugo Pernumia Terrassa Padovana Due Carrare
action filter_type
action union
action find
entity fencing at the 2016 Summer Olympics
relation country
action find
entity Cartura
relation shares border with
type designation for an administrative territorial entity
{'OR': [['fencing at the 2016 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Cartura', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:fencing_at_the_2016_Summer_Olympics property:country ?z } UNION { resource:Cartura property:shares_border_with ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q34385
P190
Q515
USER
Which city is twin town of that administrative territory ?
(Q34385,P190,c(Q515))
action filter_type
action find
entity Q34385
relation P190
type Q515
['Q34385', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { resource:Q34385 property:P190 ?j . ?j rdf:type ontology:Q515 }
Conselve
action filter_type
action find
entity Conselve
relation sister city
type city
['Conselve', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { resource:Conselve property:sister_city ?j . ?j rdf:type ontology:city }
[]
city
Clarification for simple ques.
Q34674
SYSTEM
Did you mean Bovolenta ?
Q34519 Q155 Q34674 Q34385 Q34369 Q34368 Q34297 Q34673 Q34557
(Q34519,P190,c(Q515)) (Q155,P190,c(Q515)) (Q34674,P190,c(Q515)) (Q34385,P190,c(Q515)) (Q34369,P190,c(Q515)) (Q34368,P190,c(Q515)) (Q34297,P190,c(Q515)) (Q34673,P190,c(Q515)) (Q34557,P190,c(Q515))
[ANSWER]
['Q34519', 'P190', {'concept': 'Q515'}] ['Q155', 'P190', {'concept': 'Q515'}] ['Q34674', 'P190', {'concept': 'Q515'}] ['Q34385', 'P190', {'concept': 'Q515'}] ['Q34369', 'P190', {'concept': 'Q515'}] ['Q34368', 'P190', {'concept': 'Q515'}] ['Q34297', 'P190', {'concept': 'Q515'}] ['Q34673', 'P190', {'concept': 'Q515'}] ['Q34557', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { resource:Q34385 property:P190 ?j . ?j rdf:type ontology:Q515 }
Maserà di Padova Brazil Bovolenta Conselve San Pietro Viminario Casalserugo Pernumia Terrassa Padovana Due Carrare
Did you mean Bovolenta ?
Bovolenta
['Maserà di Padova', 'sister city', {'concept': 'city'}] ['Brazil', 'sister city', {'concept': 'city'}] ['Bovolenta', 'sister city', {'concept': 'city'}] ['Conselve', 'sister city', {'concept': 'city'}] ['San Pietro Viminario', 'sister city', {'concept': 'city'}] ['Casalserugo', 'sister city', {'concept': 'city'}] ['Pernumia', 'sister city', {'concept': 'city'}] ['Terrassa Padovana', 'sister city', {'concept': 'city'}] ['Due Carrare', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { resource:Conselve property:sister_city ?j . ?j rdf:type ontology:city }
[]
Simple Question (Coreferenced)
USER
No, I meant Conselve. Could you tell me the answer for that?
(Q34385,P190,c(Q515))
Q34385
['Q34385', 'P190', {'concept': 'Q515'}]
['Conselve', 'sister city', {'concept': 'city'}]
[]
Q281371
SYSTEM
Jászberény
Q281371
(Q34385,P190,c(Q515))
action filter_type
action find
entity Q34385
relation P190
type Q515
[ANSWER] is twin town of that administrative territory
['Q34385', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { resource:Q34385 property:P190 ?j . ?j rdf:type ontology:Q515 }
Jászberény
Jászberény is twin town of that administrative territory
Jászberény
action filter_type
action find
entity Conselve
relation sister city
type city
['Conselve', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { resource:Conselve property:sister_city ?j . ?j rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q155 Q20
P530
Q1048835
USER
How many political territories are known to have diplomatic connections with Brazil and Norway ?
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q20)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q20
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q20']
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P530 resource:Q155 . ?a rdf:type ontology:Q1048835 . ?a property:P530 resource:Q20 . ?a rdf:type ontology:Q1048835 }
Brazil Norway
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Norway
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Norway']
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:diplomatic_relation resource:Brazil . ?a rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation resource:Norway . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q16 Q408 Q183
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q20)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q20
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q20']
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:P530 resource:Q155 . ?a rdf:type ontology:Q1048835 . ?a property:P530 resource:Q20 . ?a rdf:type ontology:Q1048835 }
Canada Australia Germany
3
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Norway
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Norway']
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a property:diplomatic_relation resource:Brazil . ?a rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation resource:Norway . ?a rdf:type ontology:political_territorial_entity }
[]