Simple Question (Direct)
Simple Question
Q21523332
P641
Q349
USER
What was the sport that Nico Löffler was a part of ?
(Q21523332,P641,c(Q349))
action filter_type
action find
entity Q21523332
relation P641
type Q349
['Q21523332', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q21523332 property:P641 ?l . ?l rdf:type ontology:Q349 }
Nico Löffler
action filter_type
action find
entity Nico Löffler
relation sport
type sport
['Nico Löffler', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Nico_Löffler property:sport ?l . ?l rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q21523332,P641,c(Q349))
action filter_type
action find
entity Q21523332
relation P641
type Q349
The sport that Nico Löffler was a part of was the [ANSWER]
['Q21523332', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q21523332 property:P641 ?l . ?l rdf:type ontology:Q349 }
association football
The sport that Nico Löffler was a part of was the association football
association football
action filter_type
action find
entity Nico Löffler
relation sport
type sport
['Nico Löffler', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Nico_Löffler property:sport ?l . ?l rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21523332
P27
Q1048835
USER
Which political territory is Nico Löffler an inhabitant of ?
(Q21523332,P27,c(Q1048835))
action filter_type
action find
entity Q21523332
relation P27
type Q1048835
['Q21523332', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q21523332 property:P27 ?v . ?v rdf:type ontology:Q1048835 }
Nico Löffler
action filter_type
action find
entity Nico Löffler
relation country of citizenship
type political territorial entity
['Nico Löffler', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Nico_Löffler property:country_of_citizenship ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q21523332,P27,c(Q1048835))
action filter_type
action find
entity Q21523332
relation P27
type Q1048835
[ANSWER] is Nico Löffler an inhabitant of
['Q21523332', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q21523332 property:P27 ?v . ?v rdf:type ontology:Q1048835 }
Austria
Austria is Nico Löffler an inhabitant of
Austria
action filter_type
action find
entity Nico Löffler
relation country of citizenship
type political territorial entity
['Nico Löffler', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Nico_Löffler property:country_of_citizenship ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40
P463
Q484652
USER
What were that political territory a member of ?
(Q40,P463,c(Q484652))
action filter_type
action find
entity Q40
relation P463
type Q484652
['Q40', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?j WHERE { resource:Q40 property:P463 ?j . ?j rdf:type ontology:Q484652 }
Austria
action filter_type
action find
entity Austria
relation member of
type international organization
['Austria', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?j WHERE { resource:Austria property:member_of ?j . ?j rdf:type ontology:international_organization }
[]
international organization
Q81299 Q1065 Q188822
SYSTEM
Organization for Security and Co-operation in Europe, United Nations, Asian Development Bank
Q81299 Q1065 Q188822 Q1043527
(Q40,P463,c(Q484652))
action filter_type
action find
entity Q40
relation P463
type Q484652
That political territory a member of were the [ANSWERS]
['Q40', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?j WHERE { resource:Q40 property:P463 ?j . ?j rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe United Nations Asian Development Bank Multilateral Investment Guarantee Agency
That political territory a member of were the Organization for Security and Co-operation in Europe, United Nations and Asian Development Bank
Organization for Security and Co-operation in Europe United Nations Asian Development Bank
action filter_type
action find
entity Austria
relation member of
type international organization
['Austria', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?j WHERE { resource:Austria property:member_of ?j . ?j rdf:type ontology:international_organization }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q145
P463
Q15617994
USER
Are United Kingdom members of those international organizations ?
(Q145,P463,Q81299) (Q145,P463,Q1065) (Q145,P463,Q188822)
action is_in
entity prev_answer
action find
entity Q145
relation P463
['Q145', 'P463', 'Q81299'] ['Q145', 'P463', 'Q1065'] ['Q145', 'P463', 'Q188822']
ASK WHERE { resource:Q145 property:P463 ?n . VALUES ( ?n ) { ( resource:Q81299 ) ( resource:Q1065 ) ( resource:Q188822 ) } }
United Kingdom
action is_in
entity prev_answer
action find
entity United Kingdom
relation member of
['United Kingdom', 'member of', 'Organization for Security and Co-operation in Europe'] ['United Kingdom', 'member of', 'United Nations'] ['United Kingdom', 'member of', 'Asian Development Bank']
ASK WHERE { resource:United_Kingdom property:member_of ?n . VALUES ( ?n ) { ( resource:Organization_for_Security_and_Co-operation_in_Europe ) ( resource:United_Nations ) ( resource:Asian_Development_Bank ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q145,P463,Q81299) (Q145,P463,Q1065) (Q145,P463,Q188822)
action is_in
entity prev_answer
action find
entity Q145
relation P463
[ANSWER]
['Q145', 'P463', 'Q81299'] ['Q145', 'P463', 'Q1065'] ['Q145', 'P463', 'Q188822']
ASK WHERE { resource:Q145 property:P463 ?n . VALUES ( ?n ) { ( resource:Q81299 ) ( resource:Q1065 ) ( resource:Q188822 ) } }
Yes
action is_in
entity prev_answer
action find
entity United Kingdom
relation member of
['United Kingdom', 'member of', 'Organization for Security and Co-operation in Europe'] ['United Kingdom', 'member of', 'United Nations'] ['United Kingdom', 'member of', 'Asian Development Bank']
ASK WHERE { resource:United_Kingdom property:member_of ?n . VALUES ( ?n ) { ( resource:Organization_for_Security_and_Co-operation_in_Europe ) ( resource:United_Nations ) ( resource:Asian_Development_Bank ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with around 3 political territories ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?l = 3 ) . { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?l ) WHERE { ?q property:P530 ?f . ?q rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?q } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?l = 3 ) . { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?l ) WHERE { ?q property:diplomatic_relation ?f . ?q rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?q } }
[]
political territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[ANSWERS] have diplomatic relations with around 3 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?l = 3 ) . { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?l ) WHERE { ?q property:P530 ?f . ?q rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?q } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with around 3 political territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?l = 3 ) . { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?l ) WHERE { ?q property:diplomatic_relation ?f . ?q rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?q } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21995970
P17
Q11024
USER
Are comic debate situated in those political territories ?
(Q21995970,P17,Q35) (Q21995970,P17,Q16) (Q21995970,P17,Q40)
action is_in
entity prev_answer
action find
entity Q21995970
relation P17
['Q21995970', 'P17', 'Q35'] ['Q21995970', 'P17', 'Q16'] ['Q21995970', 'P17', 'Q40']
ASK WHERE { resource:Q21995970 property:P17 ?c . VALUES ( ?c ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
comic debate
action is_in
entity prev_answer
action find
entity comic debate
relation country
['comic debate', 'country', 'Denmark'] ['comic debate', 'country', 'Canada'] ['comic debate', 'country', 'Austria']
ASK WHERE { resource:comic_debate property:country ?c . VALUES ( ?c ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
communication
SYSTEM
YES
(Q21995970,P17,Q35) (Q21995970,P17,Q16) (Q21995970,P17,Q40)
action is_in
entity prev_answer
action find
entity Q21995970
relation P17
[ANSWER]
['Q21995970', 'P17', 'Q35'] ['Q21995970', 'P17', 'Q16'] ['Q21995970', 'P17', 'Q40']
ASK WHERE { resource:Q21995970 property:P17 ?c . VALUES ( ?c ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Yes
action is_in
entity prev_answer
action find
entity comic debate
relation country
['comic debate', 'country', 'Denmark'] ['comic debate', 'country', 'Canada'] ['comic debate', 'country', 'Austria']
ASK WHERE { resource:comic_debate property:country ?c . VALUES ( ?c ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q13220204 Q486972 Q1048835
USER
Which political territories are partner town of max number of administrative country subdivisions and human settlements ?
(c(Q1048835),P190,c(Q13220204)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P190
type Q1048835
type Q13220204
action find_tuple_counts
relation P190
type Q1048835
type Q486972
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q13220204'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?v ) { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:Q13220204 ) ( ontology:Q486972 ) } } GROUP BY ?h } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?l ) WHERE { { ?m property:P190 ?y . ?m rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q13220204 } UNION { ?m property:P190 ?y . ?m rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q486972 } } GROUP BY ?m } . FILTER ( ?l = ?v ) }
action argmax
action union
action find_tuple_counts
relation sister city
type political territorial entity
type second-level administrative country subdivision
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?v ) { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:human_settlement ) } } GROUP BY ?h } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?l ) WHERE { { ?m property:sister_city ?y . ?m rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?m property:sister_city ?y . ?m rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:human_settlement } } GROUP BY ?m } . FILTER ( ?l = ?v ) }
[]
second-level administrative country subdivision human settlement political territorial entity
Q436491 Q615722 Q74881
SYSTEM
Altea, Santa Fe, Dalian
Q436491 Q615722 Q74881
(c(Q1048835),P190,c(Q13220204)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P190
type Q1048835
type Q13220204
action find_tuple_counts
relation P190
type Q1048835
type Q486972
[ANSWERS] are partner town of max number of administrative country subdivisions and human settlements
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q13220204'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?v ) { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:Q13220204 ) ( ontology:Q486972 ) } } GROUP BY ?h } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?l ) WHERE { { ?m property:P190 ?y . ?m rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q13220204 } UNION { ?m property:P190 ?y . ?m rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q486972 } } GROUP BY ?m } . FILTER ( ?l = ?v ) }
Altea Santa Fe Dalian
Altea, Santa Fe and Dalian are partner town of max number of administrative country subdivisions and human settlements
Altea Santa Fe Dalian
action argmax
action union
action find_tuple_counts
relation sister city
type political territorial entity
type second-level administrative country subdivision
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?v ) { SELECT DISTINCT ?h ( COUNT ( ?e ) AS ?n ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:human_settlement ) } } GROUP BY ?h } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?l ) WHERE { { ?m property:sister_city ?y . ?m rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?m property:sister_city ?y . ?m rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:human_settlement } } GROUP BY ?m } . FILTER ( ?l = ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1008
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with more number of political territories than Côte d'Ivoire ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1008
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?z ) WHERE { ?i property:P530 ?c . ?i rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { resource:Q1008 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?a ) }
Côte d'Ivoire
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Côte d'Ivoire
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?z ) WHERE { ?i property:diplomatic_relation ?c . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { resource:Côte_d'Ivoire property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?a ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1008
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with more number of political territories than Côte d'Ivoire
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?z ) WHERE { ?i property:P530 ?c . ?i rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { resource:Q1008 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?a ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic relations with more number of political territories than Côte d'Ivoire
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Côte d'Ivoire
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?z ) WHERE { ?i property:diplomatic_relation ?c . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?a ) WHERE { resource:Côte_d'Ivoire property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q983
P530
Q15617994 Q1048835
USER
And also tell me about Equatorial Guinea?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q983
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?e ) WHERE { ?g property:P530 ?r . ?r rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q983 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?v ) }
Equatorial Guinea
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Equatorial Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?e ) WHERE { ?g property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Equatorial_Guinea property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?v ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q983
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?e ) WHERE { ?g property:P530 ?r . ?r rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q983 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?e > ?v ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Equatorial Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?e ) WHERE { ?g property:diplomatic_relation ?r . ?r rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Equatorial_Guinea property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e > ?v ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3817507
P840
Q166142
USER
Do Killer Queen have their narrative set in those administrative territories ?
(Q3817507,P840,Q38) (Q3817507,P840,Q155) (Q3817507,P840,Q30)
action is_in
entity prev_answer
action find
entity Q3817507
relation P840
['Q3817507', 'P840', 'Q38'] ['Q3817507', 'P840', 'Q155'] ['Q3817507', 'P840', 'Q30']
ASK WHERE { resource:Q3817507 property:P840 ?z . VALUES ( ?z ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
Killer Queen
action is_in
entity prev_answer
action find
entity Killer Queen
relation narrative location
['Killer Queen', 'narrative location', 'Italy'] ['Killer Queen', 'narrative location', 'Brazil'] ['Killer Queen', 'narrative location', 'United States of America']
ASK WHERE { resource:Killer_Queen property:narrative_location ?z . VALUES ( ?z ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
application
SYSTEM
NO
(Q3817507,P840,Q38) (Q3817507,P840,Q155) (Q3817507,P840,Q30)
action is_in
entity prev_answer
action find
entity Q3817507
relation P840
[ANSWER]
['Q3817507', 'P840', 'Q38'] ['Q3817507', 'P840', 'Q155'] ['Q3817507', 'P840', 'Q30']
ASK WHERE { resource:Q3817507 property:P840 ?z . VALUES ( ?z ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
No
action is_in
entity prev_answer
action find
entity Killer Queen
relation narrative location
['Killer Queen', 'narrative location', 'Italy'] ['Killer Queen', 'narrative location', 'Brazil'] ['Killer Queen', 'narrative location', 'United States of America']
ASK WHERE { resource:Killer_Queen property:narrative_location ?z . VALUES ( ?z ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1065 Q3740002 Q60
P159
Q56061
USER
Does United Nations have HQ at Achao and New York City ?
(Q1065,P159,Q3740002) (Q1065,P159,Q60)
action is_in
entity Q1065
action intersection
action find_reverse
entity Q3740002
relation P159
action find_reverse
entity Q60
relation P159
['Q1065', 'P159', 'Q3740002'] ['Q1065', 'P159', 'Q60']
ASK WHERE { resource:Q1065 property:P159 resource:Q3740002 . resource:Q1065 property:P159 resource:Q60 }
United Nations Achao New York City
action is_in
entity United Nations
action intersection
action find_reverse
entity Achao
relation headquarters location
action find_reverse
entity New York City
relation headquarters location
['United Nations', 'headquarters location', 'Achao'] ['United Nations', 'headquarters location', 'New York City']
ASK WHERE { resource:United_Nations property:headquarters_location resource:Achao . resource:United_Nations property:headquarters_location resource:New_York_City }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q1065,P159,Q3740002) (Q1065,P159,Q60)
action is_in
entity Q1065
action intersection
action find_reverse
entity Q3740002
relation P159
action find_reverse
entity Q60
relation P159
[ANSWER]
['Q1065', 'P159', 'Q3740002'] ['Q1065', 'P159', 'Q60']
ASK WHERE { resource:Q1065 property:P159 resource:Q3740002 . resource:Q1065 property:P159 resource:Q60 }
NO and YES respectively
action is_in
entity United Nations
action intersection
action find_reverse
entity Achao
relation headquarters location
action find_reverse
entity New York City
relation headquarters location
['United Nations', 'headquarters location', 'Achao'] ['United Nations', 'headquarters location', 'New York City']
ASK WHERE { resource:United_Nations property:headquarters_location resource:Achao . resource:United_Nations property:headquarters_location resource:New_York_City }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q155 Q717
P530
Q15617994
USER
Does Venezuela have diplomatic relations with Brazil ?
(Q155,P530,Q717)
action is_in
entity Q717
action find
entity Q155
relation P530
['Q155', 'P530', 'Q717']
ASK WHERE { resource:Q155 property:P530 resource:Q717 }
Brazil Venezuela
action is_in
entity Venezuela
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Venezuela']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Venezuela }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q717)
action is_in
entity Q717
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q717']
ASK WHERE { resource:Q155 property:P530 resource:Q717 }
Yes
action is_in
entity Venezuela
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Venezuela']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Venezuela }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1747661 Q21523332
P106
Q12737077
USER
Which occupations have Nico Löffler or Jock Wallace as his/her as a career ?
OR((Q21523332,P106,c(Q12737077)), (Q1747661,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21523332
relation P106
action find
entity Q1747661
relation P106
type Q12737077
{'OR': [['Q21523332', 'P106', {'concept': 'Q12737077'}], ['Q1747661', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1747661 property:P106 ?i } UNION { resource:Q21523332 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
Jock Wallace Nico Löffler
action filter_type
action union
action find
entity Nico Löffler
relation occupation
action find
entity Jock Wallace
relation occupation
type occupation
{'OR': [['Nico Löffler', 'occupation', {'concept': 'occupation'}], ['Jock Wallace', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Jock_Wallace property:occupation ?i } UNION { resource:Nico_Löffler property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
OR((Q21523332,P106,c(Q12737077)), (Q1747661,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21523332
relation P106
action find
entity Q1747661
relation P106
type Q12737077
As [ANSWERS] have Nico Löffler or Jock Wallace as his/her as a career
{'OR': [['Q21523332', 'P106', {'concept': 'Q12737077'}], ['Q1747661', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1747661 property:P106 ?i } UNION { resource:Q21523332 property:P106 ?i } } . ?i rdf:type ontology:Q12737077 }
association football manager association football player
As association football manager and association football player have Nico Löffler or Jock Wallace as his/her as a career
association football manager association football player
action filter_type
action union
action find
entity Nico Löffler
relation occupation
action find
entity Jock Wallace
relation occupation
type occupation
{'OR': [['Nico Löffler', 'occupation', {'concept': 'occupation'}], ['Jock Wallace', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Jock_Wallace property:occupation ?i } UNION { resource:Nico_Löffler property:occupation ?i } } . ?i rdf:type ontology:occupation }
[]