Simple Question (Direct)
Simple Question
Q2782443
P136
Q1792379
USER
What can be considered as category for The Quick Gun ?
(Q2782443,P136,c(Q1792379))
action filter_type
action find
entity Q2782443
relation P136
type Q1792379
['Q2782443', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1792379 . resource:Q2782443 property:P136 ?k }
The Quick Gun
action filter_type
action find
entity The Quick Gun
relation genre
type art genre
['The Quick Gun', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:art_genre . resource:The_Quick_Gun property:genre ?k }
[]
art genre
Q172980
SYSTEM
Western
Q172980
(Q2782443,P136,c(Q1792379))
action filter_type
action find
entity Q2782443
relation P136
type Q1792379
Or [ANSWER] can be considered as category for The Quick Gun
['Q2782443', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1792379 . resource:Q2782443 property:P136 ?k }
Western
Or Western can be considered as category for The Quick Gun
Western
action filter_type
action find
entity The Quick Gun
relation genre
type art genre
['The Quick Gun', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:art_genre . resource:The_Quick_Gun property:genre ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2782443
P57
Q502895
USER
Who directed The Quick Gun ?
(Q2782443,P57,c(Q502895))
action filter_type
action find
entity Q2782443
relation P57
type Q502895
['Q2782443', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2782443 property:P57 ?j . ?j rdf:type ontology:Q502895 }
The Quick Gun
action filter_type
action find
entity The Quick Gun
relation director
type common name
['The Quick Gun', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Quick_Gun property:director ?j . ?j rdf:type ontology:common_name }
[]
common name
Q601629
SYSTEM
Sidney Salkow
Q601629
(Q2782443,P57,c(Q502895))
action filter_type
action find
entity Q2782443
relation P57
type Q502895
[ANSWER] directed The Quick Gun
['Q2782443', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q2782443 property:P57 ?j . ?j rdf:type ontology:Q502895 }
Sidney Salkow
Sidney Salkow directed The Quick Gun
Sidney Salkow
action filter_type
action find
entity The Quick Gun
relation director
type common name
['The Quick Gun', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:The_Quick_Gun property:director ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2782443
P462
Q1075
USER
Which color is The Quick Gun associated with ?
(Q2782443,P462,c(Q1075))
action filter_type
action find
entity Q2782443
relation P462
type Q1075
['Q2782443', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1075 . resource:Q2782443 property:P462 ?j }
The Quick Gun
action filter_type
action find
entity The Quick Gun
relation color
type color
['The Quick Gun', 'color', {'concept': 'color'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:color . resource:The_Quick_Gun property:color ?j }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q2782443,P462,c(Q1075))
action filter_type
action find
entity Q2782443
relation P462
type Q1075
The Quick Gun is associated with [ANSWER]
['Q2782443', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1075 . resource:Q2782443 property:P462 ?j }
color
The Quick Gun is associated with color
color
action filter_type
action find
entity The Quick Gun
relation color
type color
['The Quick Gun', 'color', {'concept': 'color'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:color . resource:The_Quick_Gun property:color ?j }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1506057
Q1075
USER
And what about Red Tails?
(Q1506057,P462,c(Q1075))
action filter_type
action find
entity Q1506057
relation P462
type Q1075
['Q1506057', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?p WHERE { resource:Q1506057 property:P462 ?p . ?p rdf:type ontology:Q1075 }
Red Tails
action filter_type
action find
entity Red Tails
relation color
type color
['Red Tails', 'color', {'concept': 'color'}]
SELECT DISTINCT ?p WHERE { resource:Red_Tails property:color ?p . ?p rdf:type ontology:color }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q1506057,P462,c(Q1075))
action filter_type
action find
entity Q1506057
relation P462
type Q1075
[ANSWER]
['Q1506057', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?p WHERE { resource:Q1506057 property:P462 ?p . ?p rdf:type ontology:Q1075 }
color
color
action filter_type
action find
entity Red Tails
relation color
type color
['Red Tails', 'color', {'concept': 'color'}]
SELECT DISTINCT ?p WHERE { resource:Red_Tails property:color ?p . ?p rdf:type ontology:color }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P462
Q1075 Q15416
USER
How many colors are more number of television programs associated with than that color ?
(c(Q15416),P462,c(Q1075))
action count
action greater
action find_tuple_counts
relation P462
type Q1075
type Q15416
action count
action filter_type
action find
entity Q22006653
relation P462
type Q1075
[{'concept': 'Q15416'}, 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?p ) WHERE { ?q property:P462 ?b . ?b rdf:type ontology:Q15416 . ?q rdf:type ontology:Q1075 } GROUP BY ?q } . FILTER ( ?p > ?y ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q22006653 property:P462 ?h . ?h rdf:type ontology:Q1075 } } }
action count
action greater
action find_tuple_counts
relation color
type color
type television program
action count
action filter_type
action find
entity color
relation color
type color
[{'concept': 'television program'}, 'color', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?p ) WHERE { ?q property:color ?b . ?b rdf:type ontology:television_program . ?q rdf:type ontology:color } GROUP BY ?q } . FILTER ( ?p > ?y ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:color property:color ?h . ?h rdf:type ontology:color } } }
[]
color television program
SYSTEM
0
(c(Q15416),P462,c(Q1075))
action count
action greater
action find_tuple_counts
relation P462
type Q1075
type Q15416
action count
action filter_type
action find
entity Q22006653
relation P462
type Q1075
[ANSWER]
[{'concept': 'Q15416'}, 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?p ) WHERE { ?q property:P462 ?b . ?b rdf:type ontology:Q15416 . ?q rdf:type ontology:Q1075 } GROUP BY ?q } . FILTER ( ?p > ?y ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q22006653 property:P462 ?h . ?h rdf:type ontology:Q1075 } } }
0
action count
action greater
action find_tuple_counts
relation color
type color
type television program
action count
action filter_type
action find
entity color
relation color
type color
[{'concept': 'television program'}, 'color', {'concept': 'color'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?b ) AS ?p ) WHERE { ?q property:color ?b . ?b rdf:type ontology:television_program . ?q rdf:type ontology:color } GROUP BY ?q } . FILTER ( ?p > ?y ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:color property:color ?h . ?h rdf:type ontology:color } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q601629
P106
Q12737077
USER
What is the job of Sidney Salkow ?
(Q601629,P106,c(Q12737077))
action filter_type
action find
entity Q601629
relation P106
type Q12737077
['Q601629', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q601629 property:P106 ?p }
Sidney Salkow
action filter_type
action find
entity Sidney Salkow
relation occupation
type occupation
['Sidney Salkow', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Sidney_Salkow property:occupation ?p }
[]
occupation
Q189290
SYSTEM
officer
Q189290
(Q601629,P106,c(Q12737077))
action filter_type
action find
entity Q601629
relation P106
type Q12737077
The job of Sidney Salkow is an [ANSWER]
['Q601629', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12737077 . resource:Q601629 property:P106 ?p }
officer
The job of Sidney Salkow is an officer
officer
action filter_type
action find
entity Sidney Salkow
relation occupation
type occupation
['Sidney Salkow', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:occupation . resource:Sidney_Salkow property:occupation ?p }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q601629
Q28640
USER
And which profession?
(Q601629,P106,c(Q28640))
action filter_type
action find
entity Q601629
relation P106
type Q28640
['Q601629', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?n WHERE { resource:Q601629 property:P106 ?n . ?n rdf:type ontology:Q28640 }
Sidney Salkow
action filter_type
action find
entity Sidney Salkow
relation occupation
type profession
['Sidney Salkow', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?n WHERE { resource:Sidney_Salkow property:occupation ?n . ?n rdf:type ontology:profession }
[]
profession
Q2526255 Q3282637 Q28389
SYSTEM
film director, film producer, screenwriter
Q2526255 Q3282637 Q28389
(Q601629,P106,c(Q28640))
action filter_type
action find
entity Q601629
relation P106
type Q28640
[ANSWERS]
['Q601629', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?n WHERE { resource:Q601629 property:P106 ?n . ?n rdf:type ontology:Q28640 }
film director film producer screenwriter
film director film producer screenwriter
action filter_type
action find
entity Sidney Salkow
relation occupation
type profession
['Sidney Salkow', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?n WHERE { resource:Sidney_Salkow property:occupation ?n . ?n rdf:type ontology:profession }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q23954967 Q601629
P27
Q15617994
USER
Which administrative territories do Sidney Salkow or Barbara Dudzińska belong to ?
OR((Q601629,P27,c(Q15617994)), (Q23954967,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q601629
relation P27
action find
entity Q23954967
relation P27
type Q15617994
{'OR': [['Q601629', 'P27', {'concept': 'Q15617994'}], ['Q23954967', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( resource:Q23954967 ) ( resource:Q601629 ) } . ?r property:P27 ?y } . ?y rdf:type ontology:Q15617994 }
Barbara Dudzińska Sidney Salkow
action filter_type
action union
action find
entity Sidney Salkow
relation country of citizenship
action find
entity Barbara Dudzińska
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sidney Salkow', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Barbara Dudzińska', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( resource:Barbara_Dudzińska ) ( resource:Sidney_Salkow ) } . ?r property:country_of_citizenship ?y } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q36
SYSTEM
United States of America, Poland
Q30 Q36
OR((Q601629,P27,c(Q15617994)), (Q23954967,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q601629
relation P27
action find
entity Q23954967
relation P27
type Q15617994
[ANSWERS] Sidney Salkow or Barbara Dudzińska belong to
{'OR': [['Q601629', 'P27', {'concept': 'Q15617994'}], ['Q23954967', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( resource:Q23954967 ) ( resource:Q601629 ) } . ?r property:P27 ?y } . ?y rdf:type ontology:Q15617994 }
United States of America Poland
United States of America and Poland Sidney Salkow or Barbara Dudzińska belong to
United States of America Poland
action filter_type
action union
action find
entity Sidney Salkow
relation country of citizenship
action find
entity Barbara Dudzińska
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sidney Salkow', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Barbara Dudzińska', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { VALUES ( ?r ) { ( resource:Barbara_Dudzińska ) ( resource:Sidney_Salkow ) } . ?r property:country_of_citizenship ?y } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?t ) { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?p ) WHERE { ?f property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } } . { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?b ) WHERE { ?c property:P530 ?l . ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?b = ?t ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?t ) { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?p ) WHERE { ?f property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?b ) WHERE { ?c property:diplomatic_relation ?l . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?b = ?t ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic relationships with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?t ) { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?p ) WHERE { ?f property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } } . { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?b ) WHERE { ?c property:P530 ?l . ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?b = ?t ) }
Italy
Italy have diplomatic relationships with max number of administrative territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?t ) { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?p ) WHERE { ?f property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?b ) WHERE { ?c property:diplomatic_relation ?l . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?b = ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P463
Q484652 Q43229
USER
How many international organizations and organizations were Italy a member of ?
(Q38,P463,c(Q484652)) (Q38,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q38
relation P463
type Q484652
action filter_type
action find
entity Q38
relation P463
type Q43229
['Q38', 'P463', {'concept': 'Q484652'}] ['Q38', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v rdf:type ?r . VALUES ( ?r ) { ( ontology:Q484652 ) ( ontology:Q43229 ) } }
Italy
action count
action union
action filter_type
action find
entity Italy
relation member of
type international organization
action filter_type
action find
entity Italy
relation member of
type organization
['Italy', 'member of', {'concept': 'international organization'}] ['Italy', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v rdf:type ?r . VALUES ( ?r ) { ( ontology:international_organization ) ( ontology:organization ) } }
[]
international organization organization
SYSTEM
26 international organizations and 26 organizations
Q125761 Q1153087 Q309195 Q1065 Q188822 Q42262 Q132551 Q472311 Q8475 Q161549 Q689859 Q7825 Q699036 Q177773 Q19771 Q54129 Q192177 Q170424 Q488981 Q176815 Q82151 Q1043527 Q340195 Q81299 Q191384 Q41550 Q826700 Q3772571 Q47488 Q7184 Q189946 Q899770 Q605326 Q1480793 Q201054 Q7804 Q842490 Q7809 Q1666759 Q42944 Q61923 Q1411881 Q656801 Q17495 Q151991 Q37143 Q386120 Q182000 Q233611 Q827525 Q7178 Q1045198
(Q38,P463,c(Q484652)) (Q38,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q38
relation P463
type Q484652
action filter_type
action find
entity Q38
relation P463
type Q43229
[ANSWER]
['Q38', 'P463', {'concept': 'Q484652'}] ['Q38', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v rdf:type ?r . VALUES ( ?r ) { ( ontology:Q484652 ) ( ontology:Q43229 ) } }
International Civil Aviation Organization Inter-American Development Bank Bank for International Settlements United Nations Asian Development Bank European Space Agency United Nations High Commissioner for Refugees International Organization for Migration Interpol European Coal and Steel Community International Fund for Agricultural Development World Trade Organization United Nations Truce Supervision Organization World Intellectual Property Organization G20 International Labour Organization Union for the Mediterranean World Meteorological Organization European Bank for Reconstruction and Development Inter-Parliamentary Union Food and Agriculture Organization of the United Nations Multilateral Investment Guarantee Agency African Development Bank Organization for Security and Co-operation in Europe International Bank for Reconstruction and Development Organisation for Economic Co-operation and Development International Energy Agency Caribbean Development Bank International Criminal Court North Atlantic Treaty Organisation Western European Union International Centre for Settlement of Investment Disputes World Customs Organization Nuclear Suppliers Group International Maritime Organization International Monetary Fund Organisation for the Prohibition of Chemical Weapons United Nations Educational, Scientific and Cultural Organization International Mobile Satellite Organization European Organization for Nuclear Research World Tourism Organization Group of Ten International Finance Corporation Universal Postal Union European Southern Observatory G8 United Nations Industrial Development Organization United Nations Conference on Trade and Development International Hydrographic Organization International Development Association International Red Cross and Red Crescent Movementsac Permanent Court of Arbitration
26 international organizations and 26 organizations
action count
action union
action filter_type
action find
entity Italy
relation member of
type international organization
action filter_type
action find
entity Italy
relation member of
type organization
['Italy', 'member of', {'concept': 'international organization'}] ['Italy', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v rdf:type ?r . VALUES ( ?r ) { ( ontology:international_organization ) ( ontology:organization ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with approximately 22 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 22
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?x ) WHERE { ?g property:P530 ?r . ?g rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?x = 22 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 22
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?x ) WHERE { ?g property:diplomatic_relation ?r . ?g rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?x = 22 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 22
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?x ) WHERE { ?g property:P530 ?r . ?g rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?x = 22 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 22
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?x ) WHERE { ?g property:diplomatic_relation ?r . ?g rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?x = 22 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P710
Q15275719
USER
Which recurring event did Poland participate in ?
(c(Q15275719),P710,Q36)
action filter_type
action find_reverse
entity Q36
relation P710
type Q15275719
[{'concept': 'Q15275719'}, 'P710', 'Q36']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q36 . ?b rdf:type ontology:Q15275719 }
Poland
action filter_type
action find_reverse
entity Poland
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Poland']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Poland . ?b rdf:type ontology:recurring_event }
[]
recurring event
Q207815
SYSTEM
Eurovision Song Contest 1996
Q207815
(c(Q15275719),P710,Q36)
action filter_type
action find_reverse
entity Q36
relation P710
type Q15275719
Poland participated in [ANSWER]
[{'concept': 'Q15275719'}, 'P710', 'Q36']
SELECT DISTINCT ?b WHERE { ?b property:P710 resource:Q36 . ?b rdf:type ontology:Q15275719 }
Eurovision Song Contest 1996
Poland participated in Eurovision Song Contest 1996
Eurovision Song Contest 1996
action filter_type
action find_reverse
entity Poland
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Poland']
SELECT DISTINCT ?b WHERE { ?b property:participant resource:Poland . ?b rdf:type ontology:recurring_event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P194
Q1752346
USER
Which assembly is the legislative body for Italy ?
(Q38,P194,c(Q1752346))
action filter_type
action find
entity Q38
relation P194
type Q1752346
['Q38', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?o WHERE { resource:Q38 property:P194 ?o . ?o rdf:type ontology:Q1752346 }
Italy
action filter_type
action find
entity Italy
relation legislative body
type assembly
['Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?o WHERE { resource:Italy property:legislative_body ?o . ?o rdf:type ontology:assembly }
[]
assembly
Q1117578
SYSTEM
Italian Parliament
Q1117578
(Q38,P194,c(Q1752346))
action filter_type
action find
entity Q38
relation P194
type Q1752346
[ANSWER] is the legislative body for Italy
['Q38', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?o WHERE { resource:Q38 property:P194 ?o . ?o rdf:type ontology:Q1752346 }
Italian Parliament
Italian Parliament is the legislative body for Italy
Italian Parliament
action filter_type
action find
entity Italy
relation legislative body
type assembly
['Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?o WHERE { resource:Italy property:legislative_body ?o . ?o rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q176
Q1752346
USER
And what about Quebec?
(Q176,P194,c(Q1752346))
action filter_type
action find
entity Q176
relation P194
type Q1752346
['Q176', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?m WHERE { resource:Q176 property:P194 ?m . ?m rdf:type ontology:Q1752346 }
Quebec
action filter_type
action find
entity Quebec
relation legislative body
type assembly
['Quebec', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?m WHERE { resource:Quebec property:legislative_body ?m . ?m rdf:type ontology:assembly }
[]
assembly
Q15150880
SYSTEM
Legislature of Quebec
Q15150880
(Q176,P194,c(Q1752346))
action filter_type
action find
entity Q176
relation P194
type Q1752346
[ANSWER]
['Q176', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?m WHERE { resource:Q176 property:P194 ?m . ?m rdf:type ontology:Q1752346 }
Legislature of Quebec
Legislature of Quebec
action filter_type
action find
entity Quebec
relation legislative body
type assembly
['Quebec', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?m WHERE { resource:Quebec property:legislative_body ?m . ?m rdf:type ontology:assembly }
[]