Simple Question (Direct)
Simple Question
Q3769441
P641
Q349
USER
Which sport did Giuliano Terraneo participate in ?
(Q3769441,P641,c(Q349))
action filter_type
action find
entity Q3769441
relation P641
type Q349
['Q3769441', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q3769441 property:P641 ?s . ?s rdf:type ontology:Q349 }
Giuliano Terraneo
action filter_type
action find
entity Giuliano Terraneo
relation sport
type sport
['Giuliano Terraneo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Giuliano_Terraneo property:sport ?s . ?s rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3769441,P641,c(Q349))
action filter_type
action find
entity Q3769441
relation P641
type Q349
Giuliano Terraneo participated in [ANSWER]
['Q3769441', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q3769441 property:P641 ?s . ?s rdf:type ontology:Q349 }
association football
Giuliano Terraneo participated in association football
association football
action filter_type
action find
entity Giuliano Terraneo
relation sport
type sport
['Giuliano Terraneo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Giuliano_Terraneo property:sport ?s . ?s rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3769441
P19
Q15617994
USER
Which administrative territory was that person born at ?
(Q2736,P19,c(Q15617994))
action filter_type
action find
entity Q3769441
relation P19
type Q15617994
['Q2736', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3769441 property:P19 ?q }
Giuliano Terraneo
action filter_type
action find
entity Giuliano Terraneo
relation place of birth
type designation for an administrative territorial entity
['association football', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Giuliano_Terraneo property:place_of_birth ?q }
[]
designation for an administrative territorial entity
Q39423
SYSTEM
Briosco
Q39423
(Q2736,P19,c(Q15617994))
action filter_type
action find
entity Q3769441
relation P19
type Q15617994
That person was born in [ANSWER]
['Q2736', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3769441 property:P19 ?q }
Briosco
That person was born in Briosco
Briosco
action filter_type
action find
entity Giuliano Terraneo
relation place of birth
type designation for an administrative territorial entity
['association football', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Giuliano_Terraneo property:place_of_birth ?q }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?i ) WHERE { ?h property:P530 ?z . ?h rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?i = ?j ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?j ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?r ) WHERE { ?f property:P530 ?w . ?f rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?f } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?i ) WHERE { ?h property:diplomatic_relation ?z . ?h rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?i = ?j ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?j ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?r ) WHERE { ?f property:diplomatic_relation ?w . ?f rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } } }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] are known to have diplomatic connections with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?i ) WHERE { ?h property:P530 ?z . ?h rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?i = ?j ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?j ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?r ) WHERE { ?f property:P530 ?w . ?f rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?f } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea are known to have diplomatic connections with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?i ) WHERE { ?h property:diplomatic_relation ?z . ?h rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?i = ?j ) . { SELECT DISTINCT ( MIN ( ?r ) AS ?j ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?r ) WHERE { ?f property:diplomatic_relation ?w . ?f rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with max number of political territories ?
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?g ) { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?s ) WHERE { ?f property:P530 ?q . ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?f } } . { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 . ?a property:P530 ?h } GROUP BY ?a } . FILTER ( ?u = ?g ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?g ) { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?s ) WHERE { ?f property:diplomatic_relation ?q . ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation ?h } GROUP BY ?a } . FILTER ( ?u = ?g ) }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have diplomatic relationships with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?g ) { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?s ) WHERE { ?f property:P530 ?q . ?f rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?f } } . { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 . ?a property:P530 ?h } GROUP BY ?a } . FILTER ( ?u = ?g ) }
Australia
Australia have diplomatic relationships with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?g ) { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?s ) WHERE { ?f property:diplomatic_relation ?q . ?f rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?a property:diplomatic_relation ?h } GROUP BY ?a } . FILTER ( ?u = ?g ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q408 Q7488321
P27
Q502895
USER
Is Shane Webb a citizen of that political territory ?
(Q7488321,P27,Q408)
action is_in
entity Q408
action find
entity Q7488321
relation P27
['Q7488321', 'P27', 'Q408']
ASK WHERE { resource:Q7488321 property:P27 resource:Q408 }
Australia Shane Webb
action is_in
entity Australia
action find
entity Shane Webb
relation country of citizenship
['Shane Webb', 'country of citizenship', 'Australia']
ASK WHERE { resource:Shane_Webb property:country_of_citizenship resource:Australia }
[]
common name
SYSTEM
YES
(Q7488321,P27,Q408)
action is_in
entity Q408
action find
entity Q7488321
relation P27
[ANSWER]
['Q7488321', 'P27', 'Q408']
ASK WHERE { resource:Q7488321 property:P27 resource:Q408 }
Yes
action is_in
entity Australia
action find
entity Shane Webb
relation country of citizenship
['Shane Webb', 'country of citizenship', 'Australia']
ASK WHERE { resource:Shane_Webb property:country_of_citizenship resource:Australia }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1605971 Q691
P47
Q1048835
USER
Which political territories are adjacent to Papua New Guinea or Barjas ?
OR((Q691,P47,c(Q1048835)), (Q1605971,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q691
relation P47
action find
entity Q1605971
relation P47
type Q1048835
{'OR': [['Q691', 'P47', {'concept': 'Q1048835'}], ['Q1605971', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q691 property:P47 ?x } UNION { resource:Q1605971 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Barjas Papua New Guinea
action filter_type
action union
action find
entity Papua New Guinea
relation shares border with
action find
entity Barjas
relation shares border with
type political territorial entity
{'OR': [['Papua New Guinea', 'shares border with', {'concept': 'political territorial entity'}], ['Barjas', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Papua_New_Guinea property:shares_border_with ?x } UNION { resource:Barjas property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q842698 Q967734 Q1442729 Q918084 Q5095 Q408 Q1617652 Q1447369
SYSTEM
Trabadelo, Pedrafita do Cebreiro, Corullón, Vega de Valcarce, Papua, Australia, Oencia, Folgoso do Courel
Q842698 Q967734 Q1442729 Q918084 Q5095 Q408 Q1617652 Q1447369
OR((Q691,P47,c(Q1048835)), (Q1605971,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q691
relation P47
action find
entity Q1605971
relation P47
type Q1048835
[ANSWERS] are adjacent to Papua New Guinea or Barjas
{'OR': [['Q691', 'P47', {'concept': 'Q1048835'}], ['Q1605971', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q691 property:P47 ?x } UNION { resource:Q1605971 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Trabadelo Pedrafita do Cebreiro Corullón Vega de Valcarce Papua Australia Oencia Folgoso do Courel
Trabadelo, Pedrafita do Cebreiro, Corullón, Vega de Valcarce, Papua, Australia, Oencia and Folgoso do Courel are adjacent to Papua New Guinea or Barjas
Trabadelo Pedrafita do Cebreiro Corullón Vega de Valcarce Papua Australia Oencia Folgoso do Courel
action filter_type
action union
action find
entity Papua New Guinea
relation shares border with
action find
entity Barjas
relation shares border with
type political territorial entity
{'OR': [['Papua New Guinea', 'shares border with', {'concept': 'political territorial entity'}], ['Barjas', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Papua_New_Guinea property:shares_border_with ?x } UNION { resource:Barjas property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic associations with approximately 5 political territories ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?f ) WHERE { ?b property:P530 ?x . ?b rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?f = 5 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?f ) WHERE { ?b property:diplomatic_relation ?x . ?b rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?f = 5 ) }
[]
political territorial entity political territorial entity
Q183 Q35 Q16
SYSTEM
Germany, Denmark, Canada
Q183 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[ANSWERS] have diplomatic associations with approximately 5 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?f ) WHERE { ?b property:P530 ?x . ?b rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?f = 5 ) }
Germany Denmark Canada New Zealand
Germany, Denmark and Canada have diplomatic associations with approximately 5 political territories
Germany Denmark Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?f ) WHERE { ?b property:diplomatic_relation ?x . ?b rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?f = 5 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q1048835 Q1048835
USER
Which political territories have tactful political relations with approximately the same number of political territories as Austria ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { resource:Q40 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?b = ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?b ) WHERE { ?y property:P530 ?v . ?y rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } GROUP BY ?y } }
Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { resource:Austria property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?b = ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?b ) WHERE { ?y property:diplomatic_relation ?v . ?y rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?y } }
[]
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
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWERS] have tactful political relations with approximately the same number of political territories as Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { resource:Q40 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?b = ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?b ) WHERE { ?y property:P530 ?v . ?y rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } GROUP BY ?y } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have tactful political relations with approximately the same number of political territories as Austria
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { resource:Austria property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?b = ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?b ) WHERE { ?y property:diplomatic_relation ?v . ?y rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?y } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q769
P530
Q1048835 Q1048835
USER
And what about Grenada?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?a ) WHERE { ?d rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 . ?d property:P530 ?m } GROUP BY ?d } . FILTER ( ?a = ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Q769 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } }
Grenada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?a ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?m } GROUP BY ?d } . FILTER ( ?a = ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Grenada property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?a ) WHERE { ?d rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 . ?d property:P530 ?m } GROUP BY ?d } . FILTER ( ?a = ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Q769 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark Austria New Zealand
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?a ) WHERE { ?d rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?m } GROUP BY ?d } . FILTER ( ?a = ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { resource:Grenada property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35 Q40 Q664
P163
Q14660
USER
Which flags are associated with Denmark, Austria and New Zealand ?
(Q35,P163,c(Q14660)) (Q40,P163,c(Q14660)) (Q664,P163,c(Q14660))
action union
action filter_type
action find
entity Q35
relation P163
type Q14660
action filter_type
action find
entity Q40
relation P163
type Q14660
action filter_type
action find
entity Q664
relation P163
type Q14660
['Q35', 'P163', {'concept': 'Q14660'}] ['Q40', 'P163', {'concept': 'Q14660'}] ['Q664', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?x ) { ( resource:Q35 ) ( resource:Q40 ) } . ?x property:P163 ?v }
Denmark Austria New Zealand
action union
action filter_type
action find
entity Denmark
relation flag
type flag
action filter_type
action find
entity Austria
relation flag
type flag
action filter_type
action find
entity New Zealand
relation flag
type flag
['Denmark', 'flag', {'concept': 'flag'}] ['Austria', 'flag', {'concept': 'flag'}] ['New Zealand', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?x ) { ( resource:Denmark ) ( resource:Austria ) } . ?x property:flag ?v }
[]
flag
Q60149 Q46835 Q160260
SYSTEM
Flag of Denmark, flag of Austria, flag of New Zealand
Q60149 Q46835 Q160260
(Q35,P163,c(Q14660)) (Q40,P163,c(Q14660)) (Q664,P163,c(Q14660))
action union
action filter_type
action find
entity Q35
relation P163
type Q14660
action filter_type
action find
entity Q40
relation P163
type Q14660
action filter_type
action find
entity Q664
relation P163
type Q14660
[ANSWERS] are associated with Denmark, Austria and New Zealand
['Q35', 'P163', {'concept': 'Q14660'}] ['Q40', 'P163', {'concept': 'Q14660'}] ['Q664', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?x ) { ( resource:Q35 ) ( resource:Q40 ) } . ?x property:P163 ?v }
Flag of Denmark flag of Austria flag of New Zealand
Flag of Denmark, flag of Austria and flag of New Zealand are associated with Denmark, Austria and New Zealand
Flag of Denmark flag of Austria flag of New Zealand
action union
action filter_type
action find
entity Denmark
relation flag
type flag
action filter_type
action find
entity Austria
relation flag
type flag
action filter_type
action find
entity New Zealand
relation flag
type flag
['Denmark', 'flag', {'concept': 'flag'}] ['Austria', 'flag', {'concept': 'flag'}] ['New Zealand', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { VALUES ( ?x ) { ( resource:Denmark ) ( resource:Austria ) } . ?x property:flag ?v }
[]