Simple Question (Direct)
Simple Question
Q716863
P21
Q290
USER
What is the sex of Fernando Vicente ?
(Q716863,P21,c(Q290))
action filter_type
action find
entity Q716863
relation P21
type Q290
['Q716863', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q716863 property:P21 ?m . ?m rdf:type ontology:Q290 }
Fernando Vicente
action filter_type
action find
entity Fernando Vicente
relation gender
type sex
['Fernando Vicente', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Fernando_Vicente property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q716863,P21,c(Q290))
action filter_type
action find
entity Q716863
relation P21
type Q290
The sex of Fernando Vicente is a [ANSWER]
['Q716863', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q716863 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
The sex of Fernando Vicente is a male
male
action filter_type
action find
entity Fernando Vicente
relation gender
type sex
['Fernando Vicente', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Fernando_Vicente property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q716863
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Fernando Vicente ?
(Q716863,P27,c(Q15617994))
action filter_type
action find
entity Q716863
relation P27
type Q15617994
['Q716863', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q716863 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Fernando Vicente
action filter_type
action find
entity Fernando Vicente
relation country of citizenship
type designation for an administrative territorial entity
['Fernando Vicente', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Fernando_Vicente property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q716863,P27,c(Q15617994))
action filter_type
action find
entity Q716863
relation P27
type Q15617994
And [ANSWER] is the country of citizenship of Fernando Vicente
['Q716863', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q716863 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Spain
And Spain is the country of citizenship of Fernando Vicente
Spain
action filter_type
action find
entity Fernando Vicente
relation country of citizenship
type designation for an administrative territorial entity
['Fernando Vicente', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Fernando_Vicente property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q664
P530
Q15617994 Q1048835
USER
How many political territories have tactful political relations with more number of administrative territories than New Zealand ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?e ) WHERE { ?h property:P530 ?j . ?h rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q664 property:P530 ?o } } . FILTER ( ?e > ?t ) }
New Zealand
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
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 ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?e ) WHERE { ?h property:diplomatic_relation ?j . ?h rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:New_Zealand property:diplomatic_relation ?o } } . FILTER ( ?e > ?t ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
5
Q40 Q183 Q408 Q35 Q16
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?e ) WHERE { ?h property:P530 ?j . ?h rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q664 property:P530 ?o } } . FILTER ( ?e > ?t ) }
Austria Germany Australia Denmark Canada
5
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
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 ( COUNT ( ?h ) AS ?w ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?e ) WHERE { ?h property:diplomatic_relation ?j . ?h rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:New_Zealand property:diplomatic_relation ?o } } . FILTER ( ?e > ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q769
P530
Q15617994 Q1048835
USER
And how about Grenada?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?r ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q769 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?r > ?m ) }
Grenada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
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 ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?r ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Grenada property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r > ?m ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?r ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q769 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?r > ?m ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
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 ( COUNT ( ?q ) AS ?u ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?r ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Grenada property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r > ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P85
Q484692
USER
Which is the national anthem of Spain ?
(Q29,P85,c(Q484692))
action filter_type
action find
entity Q29
relation P85
type Q484692
['Q29', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?u WHERE { resource:Q29 property:P85 ?u . ?u rdf:type ontology:Q484692 }
Spain
action filter_type
action find
entity Spain
relation anthem
type hymn
['Spain', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?u WHERE { resource:Spain property:anthem ?u . ?u rdf:type ontology:hymn }
[]
hymn
Q130940
SYSTEM
Marcha Real
Q130940
(Q29,P85,c(Q484692))
action filter_type
action find
entity Q29
relation P85
type Q484692
The national anthem of Spain is the [ANSWER]
['Q29', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?u WHERE { resource:Q29 property:P85 ?u . ?u rdf:type ontology:Q484692 }
Marcha Real
The national anthem of Spain is the Marcha Real
Marcha Real
action filter_type
action find
entity Spain
relation anthem
type hymn
['Spain', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?u WHERE { resource:Spain property:anthem ?u . ?u rdf:type ontology:hymn }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q29 Q334
P530
Q1048835
USER
How many political territories holds diplomatic relationship with Spain and Singapore ?
(Q29,P530,c(Q1048835)) (Q334,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q29
relation P530
type Q1048835
action filter_type
action find
entity Q334
relation P530
type Q1048835
['Q29', 'P530', {'concept': 'Q1048835'}] ['Q334', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q29 property:P530 ?z . ?z rdf:type ontology:Q1048835 . resource:Q334 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Spain Singapore
action count
action intersection
action filter_type
action find
entity Spain
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Singapore
relation diplomatic relation
type political territorial entity
['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Singapore', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Spain property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . resource:Singapore property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q29,P530,c(Q1048835)) (Q334,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q29
relation P530
type Q1048835
action filter_type
action find
entity Q334
relation P530
type Q1048835
[ANSWER]
['Q29', 'P530', {'concept': 'Q1048835'}] ['Q334', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q29 property:P530 ?z . ?z rdf:type ontology:Q1048835 . resource:Q334 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find
entity Spain
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Singapore
relation diplomatic relation
type political territorial entity
['Spain', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Singapore', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Spain property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . resource:Singapore property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q7725634 Q484692 Q15617994
USER
Which administrative territories have an anthem named atleast 1 literary works or hymns ?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action atleast
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
value 1
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) ?v WHERE { VALUES ( ?p ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?r rdf:type ?p } GROUP BY ?v } . FILTER ( ?g >= 1 ) }
action atleast
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) ?v WHERE { VALUES ( ?p ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?r rdf:type ?p } GROUP BY ?v } . FILTER ( ?g >= 1 ) }
[]
literary work hymn designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q801 Q707 Q709 Q811 Q805 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q800 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q813 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q779011 Q794 Q954 Q889 Q884 Q881 Q739 Q826 Q796 Q241 Q242 Q244 Q1019 Q153136 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q783 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q1050 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q760 Q574 Q874 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q817 Q810 Q770 Q1014 Q1016 Q1011 Q945 Q678 Q29 Q1039 Q672 Q822 Q298 Q863 Q869 Q953
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action atleast
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
value 1
[ANSWERS] have an anthem named atleast 1 literary works or hymns
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) ?v WHERE { VALUES ( ?p ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?r rdf:type ?p } GROUP BY ?v } . FILTER ( ?g >= 1 ) }
Federated States of Micronesia Panama Israel Flevoland Marshall Islands Nicaragua Yemen Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Costa Rica Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Kyrgyzstan Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Principality of Montenegro Iran Zimbabwe Afghanistan South Korea Vietnam Colombia Maldives Iraq Cuba Belize Barbados Madagascar Habsburg Empire Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Honduras Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Swaziland Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Kuwait Jordan Friesland Liberia Libya Cape Verde Togo Tonga Spain Sao Tomé and Príncipe Tuvalu Lebanon Chile Tajikistan Thailand Zambia
Italy, Brazil and United States of America have an anthem named atleast 1 literary works or hymns
Italy Brazil United States of America
action atleast
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) ?v WHERE { VALUES ( ?p ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?r rdf:type ?p } GROUP BY ?v } . FILTER ( ?g >= 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q50122
P530
Q15617994
USER
Do Pescina have diplomatic associations with those ones ?
(Q50122,P530,Q38) (Q50122,P530,Q155) (Q50122,P530,Q30)
action is_in
entity prev_answer
action find
entity Q50122
relation P530
['Q50122', 'P530', 'Q38'] ['Q50122', 'P530', 'Q155'] ['Q50122', 'P530', 'Q30']
ASK WHERE { resource:Q50122 property:P530 ?u . VALUES ( ?u ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } }
Pescina
action is_in
entity prev_answer
action find
entity Pescina
relation diplomatic relation
['Pescina', 'diplomatic relation', 'Italy'] ['Pescina', 'diplomatic relation', 'Brazil'] ['Pescina', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Pescina property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q50122,P530,Q38) (Q50122,P530,Q155) (Q50122,P530,Q30)
action is_in
entity prev_answer
action find
entity Q50122
relation P530
[ANSWER]
['Q50122', 'P530', 'Q38'] ['Q50122', 'P530', 'Q155'] ['Q50122', 'P530', 'Q30']
ASK WHERE { resource:Q50122 property:P530 ?u . VALUES ( ?u ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } }
No
action is_in
entity prev_answer
action find
entity Pescina
relation diplomatic relation
['Pescina', 'diplomatic relation', 'Italy'] ['Pescina', 'diplomatic relation', 'Brazil'] ['Pescina', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Pescina property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q15324 Q82794 Q15617994
USER
Which administrative territories have their location as max number of bodies of water or geographic regions ?
(c(Q15617994),P706,c(Q15324)|c(Q82794))
action argmax
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q82794
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q82794'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?k ) WHERE { { ?i property:P706 ?w . ?w rdf:type ontology:Q15324 . ?i rdf:type ontology:Q15617994 } UNION { ?i property:P706 ?w . ?i rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q82794 } } GROUP BY ?i } } . FILTER ( ?o = ?s ) . { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?o ) WHERE { { ?e property:P706 ?n . ?e rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15324 } UNION { ?e property:P706 ?n . ?e rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q82794 } } GROUP BY ?e } }
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type geographic region
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'geographic region'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?k ) WHERE { { ?i property:located_on_terrain_feature ?w . ?w rdf:type ontology:body_of_water . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:located_on_terrain_feature ?w . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:geographic_region } } GROUP BY ?i } } . FILTER ( ?o = ?s ) . { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?o ) WHERE { { ?e property:located_on_terrain_feature ?n . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:body_of_water } UNION { ?e property:located_on_terrain_feature ?n . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:geographic_region } } GROUP BY ?e } }
[]
body of water geographic region designation for an administrative territorial entity
Q3193
SYSTEM
Ostseebad Insel Poel
Q3193
(c(Q15617994),P706,c(Q15324)|c(Q82794))
action argmax
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q82794
The [ANSWER] have their location as max number of bodies of water or geographic regions
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q82794'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?k ) WHERE { { ?i property:P706 ?w . ?w rdf:type ontology:Q15324 . ?i rdf:type ontology:Q15617994 } UNION { ?i property:P706 ?w . ?i rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q82794 } } GROUP BY ?i } } . FILTER ( ?o = ?s ) . { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?o ) WHERE { { ?e property:P706 ?n . ?e rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15324 } UNION { ?e property:P706 ?n . ?e rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q82794 } } GROUP BY ?e } }
Ostseebad Insel Poel
The Ostseebad Insel Poel have their location as max number of bodies of water or geographic regions
Ostseebad Insel Poel
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type geographic region
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'geographic region'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?k ) WHERE { { ?i property:located_on_terrain_feature ?w . ?w rdf:type ontology:body_of_water . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:located_on_terrain_feature ?w . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:geographic_region } } GROUP BY ?i } } . FILTER ( ?o = ?s ) . { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?o ) WHERE { { ?e property:located_on_terrain_feature ?n . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:body_of_water } UNION { ?e property:located_on_terrain_feature ?n . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:geographic_region } } GROUP BY ?e } }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3193 Q531060 Q545
P706
Q15324
USER
Is that administrative territory located in Bay of Wismar and Baltic Sea ?
(Q3193,P706,Q531060) (Q3193,P706,Q545)
action is_in
entity Q3193
action intersection
action find_reverse
entity Q531060
relation P706
action find_reverse
entity Q545
relation P706
['Q3193', 'P706', 'Q531060'] ['Q3193', 'P706', 'Q545']
ASK WHERE { resource:Q3193 property:P706 resource:Q531060 . resource:Q3193 property:P706 resource:Q545 }
Ostseebad Insel Poel Bay of Wismar Baltic Sea
action is_in
entity Ostseebad Insel Poel
action intersection
action find_reverse
entity Bay of Wismar
relation located on terrain feature
action find_reverse
entity Baltic Sea
relation located on terrain feature
['Ostseebad Insel Poel', 'located on terrain feature', 'Bay of Wismar'] ['Ostseebad Insel Poel', 'located on terrain feature', 'Baltic Sea']
ASK WHERE { resource:Ostseebad_Insel_Poel property:located_on_terrain_feature resource:Bay_of_Wismar . resource:Ostseebad_Insel_Poel property:located_on_terrain_feature resource:Baltic_Sea }
[]
body of water
SYSTEM
YES
(Q3193,P706,Q531060) (Q3193,P706,Q545)
action is_in
entity Q3193
action intersection
action find_reverse
entity Q531060
relation P706
action find_reverse
entity Q545
relation P706
[ANSWER]
['Q3193', 'P706', 'Q531060'] ['Q3193', 'P706', 'Q545']
ASK WHERE { resource:Q3193 property:P706 resource:Q531060 . resource:Q3193 property:P706 resource:Q545 }
Yes
action is_in
entity Ostseebad Insel Poel
action intersection
action find_reverse
entity Bay of Wismar
relation located on terrain feature
action find_reverse
entity Baltic Sea
relation located on terrain feature
['Ostseebad Insel Poel', 'located on terrain feature', 'Bay of Wismar'] ['Ostseebad Insel Poel', 'located on terrain feature', 'Baltic Sea']
ASK WHERE { resource:Ostseebad_Insel_Poel property:located_on_terrain_feature resource:Bay_of_Wismar . resource:Ostseebad_Insel_Poel property:located_on_terrain_feature resource:Baltic_Sea }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3193
P190
Q914262
USER
Which administrative territory of Sweden is twin town of that administrative territory ?
action filter_type
action find
entity Q3193
relation P190
type Q914262
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q914262 . resource:Q3193 property:P190 ?c }
Ostseebad Insel Poel
action filter_type
action find
entity Ostseebad Insel Poel
relation sister city
type administrative territorial entity of Sweden
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity_of_Sweden . resource:Ostseebad_Insel_Poel property:sister_city ?c }
[]
administrative territorial entity of Sweden
Q499359
SYSTEM
Hammarö Municipality
Q499359
action filter_type
action find
entity Q3193
relation P190
type Q914262
[ANSWER] is twin town of that administrative territory
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q914262 . resource:Q3193 property:P190 ?c }
Hammarö Municipality
Hammarö Municipality is twin town of that administrative territory
Hammarö Municipality
action filter_type
action find
entity Ostseebad Insel Poel
relation sister city
type administrative territorial entity of Sweden
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity_of_Sweden . resource:Ostseebad_Insel_Poel property:sister_city ?c }
[]