Simple Question (Direct)
Simple Question
Q1781561
P47
Q56061
USER
Which administrative territories have a shared border with Hässelby Villastad ?
(Q1781561,P47,c(Q56061))
action filter_type
action find
entity Q1781561
relation P47
type Q56061
['Q1781561', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q1781561 property:P47 ?z }
Hässelby Villastad
action filter_type
action find
entity Hässelby Villastad
relation shares border with
type administrative territorial entity
['Hässelby Villastad', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Hässelby_Villastad property:shares_border_with ?z }
[]
administrative territorial entity
Q4357715 Q6932474 Q1781359
SYSTEM
Vinsta, Hässelby gård, Kälvesta
Q1406851 Q4357715 Q6932474 Q1781359
(Q1781561,P47,c(Q56061))
action filter_type
action find
entity Q1781561
relation P47
type Q56061
[ANSWERS] have a shared border with Hässelby Villastad
['Q1781561', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q1781561 property:P47 ?z }
Hässelby strand Vinsta Hässelby gård Kälvesta
Vinsta, Hässelby gård and Kälvesta have a shared border with Hässelby Villastad
Vinsta Hässelby gård Kälvesta
action filter_type
action find
entity Hässelby Villastad
relation shares border with
type administrative territorial entity
['Hässelby Villastad', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Hässelby_Villastad property:shares_border_with ?z }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4357715 Q6932474 Q1781359
P361
Q914262
USER
Which administrative territory of Swedens are those administrative territories a portion of ?
(Q4357715,P361,c(Q914262)) (Q6932474,P361,c(Q914262)) (Q1781359,P361,c(Q914262))
action filter_type
action find
entity prev_answer
relation P361
type Q914262
['Q4357715', 'P361', {'concept': 'Q914262'}] ['Q6932474', 'P361', {'concept': 'Q914262'}] ['Q1781359', 'P361', {'concept': 'Q914262'}]
SELECT DISTINCT ?s WHERE { ?d property:P361 ?s . ?s rdf:type ontology:Q914262 . VALUES ( ?d ) { ( resource:Q1406851 ) ( resource:Q4357715 ) ( resource:Q6932474 ) } }
Vinsta Hässelby gård Kälvesta
action filter_type
action find
entity prev_answer
relation part of
type administrative territorial entity of Sweden
['Vinsta', 'part of', {'concept': 'administrative territorial entity of Sweden'}] ['Hässelby gård', 'part of', {'concept': 'administrative territorial entity of Sweden'}] ['Kälvesta', 'part of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?s WHERE { ?d property:part_of ?s . ?s rdf:type ontology:administrative_territorial_entity_of_Sweden . VALUES ( ?d ) { ( resource:Hässelby_strand ) ( resource:Vinsta ) ( resource:Hässelby_gård ) } }
[]
administrative territorial entity of Sweden
Q861336 Q861336 Q861336
SYSTEM
Hässelby-Vällingby city district
Q861336 Q861336 Q861336
(Q4357715,P361,c(Q914262)) (Q6932474,P361,c(Q914262)) (Q1781359,P361,c(Q914262))
action filter_type
action find
entity prev_answer
relation P361
type Q914262
[ANSWER], [ANSWER] and [ANSWER] are those administrative territories a portion of
['Q4357715', 'P361', {'concept': 'Q914262'}] ['Q6932474', 'P361', {'concept': 'Q914262'}] ['Q1781359', 'P361', {'concept': 'Q914262'}]
SELECT DISTINCT ?s WHERE { ?d property:P361 ?s . ?s rdf:type ontology:Q914262 . VALUES ( ?d ) { ( resource:Q1406851 ) ( resource:Q4357715 ) ( resource:Q6932474 ) } }
Hässelby-Vällingby city district Hässelby-Vällingby city district Hässelby-Vällingby city district
Hässelby-Vällingby city district, Hässelby-Vällingby city district and Hässelby-Vällingby city district are those administrative territories a portion of
Hässelby-Vällingby city district Hässelby-Vällingby city district Hässelby-Vällingby city district
action filter_type
action find
entity prev_answer
relation part of
type administrative territorial entity of Sweden
['Vinsta', 'part of', {'concept': 'administrative territorial entity of Sweden'}] ['Hässelby gård', 'part of', {'concept': 'administrative territorial entity of Sweden'}] ['Kälvesta', 'part of', {'concept': 'administrative territorial entity of Sweden'}]
SELECT DISTINCT ?s WHERE { ?d property:part_of ?s . ?s rdf:type ontology:administrative_territorial_entity_of_Sweden . VALUES ( ?d ) { ( resource:Hässelby_strand ) ( resource:Vinsta ) ( resource:Hässelby_gård ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781561
P276
Q44539
USER
Which temple has its location as Hässelby Villastad ?
(c(Q44539),P276,Q1781561)
action filter_type
action find_reverse
entity Q1781561
relation P276
type Q44539
[{'concept': 'Q44539'}, 'P276', 'Q1781561']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q1781561 . ?x rdf:type ontology:Q44539 }
Hässelby Villastad
action filter_type
action find_reverse
entity Hässelby Villastad
relation location
type temple
[{'concept': 'temple'}, 'location', 'Hässelby Villastad']
SELECT DISTINCT ?x WHERE { ?x property:location resource:Hässelby_Villastad . ?x rdf:type ontology:temple }
[]
temple
Q10531787
SYSTEM
Hässelby Villastad church
Q10531787
(c(Q44539),P276,Q1781561)
action filter_type
action find_reverse
entity Q1781561
relation P276
type Q44539
[ANSWER] has its location as Hässelby Villastad
[{'concept': 'Q44539'}, 'P276', 'Q1781561']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q1781561 . ?x rdf:type ontology:Q44539 }
Hässelby Villastad church
Hässelby Villastad church has its location as Hässelby Villastad
Hässelby Villastad church
action filter_type
action find_reverse
entity Hässelby Villastad
relation location
type temple
[{'concept': 'temple'}, 'location', 'Hässelby Villastad']
SELECT DISTINCT ?x WHERE { ?x property:location resource:Hässelby_Villastad . ?x rdf:type ontology:temple }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10531787
P186
Q214609
USER
Which material is used to manufacture that temple ?
(Q10531787,P186,c(Q214609))
action filter_type
action find
entity Q10531787
relation P186
type Q214609
['Q10531787', 'P186', {'concept': 'Q214609'}]
SELECT DISTINCT ?u WHERE { resource:Q10531787 property:P186 ?u . ?u rdf:type ontology:Q214609 }
Hässelby Villastad church
action filter_type
action find
entity Hässelby Villastad church
relation material used
type material
['Hässelby Villastad church', 'material used', {'concept': 'material'}]
SELECT DISTINCT ?u WHERE { resource:Hässelby_Villastad_church property:material_used ?u . ?u rdf:type ontology:material }
[]
material
Q40089
SYSTEM
brick
Q40089
(Q10531787,P186,c(Q214609))
action filter_type
action find
entity Q10531787
relation P186
type Q214609
The [ANSWER] is used to manufacture that temple
['Q10531787', 'P186', {'concept': 'Q214609'}]
SELECT DISTINCT ?u WHERE { resource:Q10531787 property:P186 ?u . ?u rdf:type ontology:Q214609 }
brick
The brick is used to manufacture that temple
brick
action filter_type
action find
entity Hässelby Villastad church
relation material used
type material
['Hässelby Villastad church', 'material used', {'concept': 'material'}]
SELECT DISTINCT ?u WHERE { resource:Hässelby_Villastad_church property:material_used ?u . ?u rdf:type ontology:material }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q932302 Q861336
P17
Q15617994
USER
Which administrative territories are Hässelby-Vällingby city district or Dingle present in ?
OR((Q861336,P17,c(Q15617994)), (Q932302,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q861336
relation P17
action find
entity Q932302
relation P17
type Q15617994
{'OR': [['Q861336', 'P17', {'concept': 'Q15617994'}], ['Q932302', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q932302 property:P17 ?s } UNION { resource:Q861336 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Dingle Hässelby-Vällingby city district
action filter_type
action union
action find
entity Hässelby-Vällingby city district
relation country
action find
entity Dingle
relation country
type designation for an administrative territorial entity
{'OR': [['Hässelby-Vällingby city district', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dingle', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Dingle property:country ?s } UNION { resource:Hässelby-Vällingby_city_district property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34 Q27
SYSTEM
Sweden, Ireland
Q34 Q27
OR((Q861336,P17,c(Q15617994)), (Q932302,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q861336
relation P17
action find
entity Q932302
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q861336', 'P17', {'concept': 'Q15617994'}], ['Q932302', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q932302 property:P17 ?s } UNION { resource:Q861336 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Sweden Ireland
Which administrative territories are Hässelby-Vällingby city district or Dingle present in
Sweden Ireland
action filter_type
action union
action find
entity Hässelby-Vällingby city district
relation country
action find
entity Dingle
relation country
type designation for an administrative territorial entity
{'OR': [['Hässelby-Vällingby city district', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dingle', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Dingle property:country ?s } UNION { resource:Hässelby-Vällingby_city_district property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P6
Q502895
USER
How many people are that administrative territory the head of goverment of ?
(Q34,P6,c(Q502895))
['Q34', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7654287 property:Q2285706 ?z . ?z rdf:type ontology:Q502895 }
['Sweden', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Sweden property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q34
SYSTEM
Did you mean Sweden ?
(Q34,P6,c(Q502895)) (Q27,P6,c(Q502895))
[ANSWER]
['Q34', 'P6', {'concept': 'Q502895'}] ['Q27', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7654287 property:Q2285706 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Sweden ?
Sweden
['Sweden', 'head of government', {'concept': 'common name'}] ['Ireland', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Sweden property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q34,P6,c(Q502895))
['Q34', 'P6', {'concept': 'Q502895'}]
['Sweden', 'head of government', {'concept': 'common name'}]
[]
SYSTEM
4
Q2740012 Q52920 Q53740 Q53747
(Q34,P6,c(Q502895))
[ANSWER]
['Q34', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q7654287 property:Q2285706 ?z . ?z rdf:type ontology:Q502895 }
Stefan Löfven Fredrik Reinfeldt Ingvar Carlsson Göran Persson
4
['Sweden', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Sweden property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
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 relations with approximately 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?s ) WHERE { ?n property:P530 ?b . ?n rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?s = 1 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?s ) WHERE { ?n property:diplomatic_relation ?b . ?n rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?s = 1 ) }
[]
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 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?s ) WHERE { ?n property:P530 ?b . ?n rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?s = 1 ) }
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 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?u ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?s ) WHERE { ?n property:diplomatic_relation ?b . ?n rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?s = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q796
P530
Q15617994 Q15617994
USER
Which administrative territories have ambassadorial relations with around the same number of administrative territories as Iraq ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q796
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Q796 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?e = ?d ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?e ) WHERE { ?n property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } }
Iraq
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Iraq property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e = ?d ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?e ) WHERE { ?n property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q796
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with around the same number of administrative territories as Iraq
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Q796 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?e = ?d ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?e ) WHERE { ?n property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, Poland and People's Republic of China have ambassadorial relations with around the same number of administrative territories as Iraq
Netherlands Poland People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Iraq property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e = ?d ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?e ) WHERE { ?n property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q822
P530
Q15617994 Q15617994
USER
And also tell me about Lebanon?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q822
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?p ) AS ?k ) WHERE { ?l rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?l property:P530 ?p } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b rdf:type ontology:Q15617994 . resource:Q822 property:P530 ?b } } . FILTER ( ?k = ?r ) }
Lebanon
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Lebanon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?p ) AS ?k ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:diplomatic_relation ?p } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lebanon property:diplomatic_relation ?b } } . FILTER ( ?k = ?r ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q822
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?p ) AS ?k ) WHERE { ?l rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?l property:P530 ?p } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b rdf:type ontology:Q15617994 . resource:Q822 property:P530 ?b } } . FILTER ( ?k = ?r ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands Poland People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Lebanon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?p ) AS ?k ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:diplomatic_relation ?p } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lebanon property:diplomatic_relation ?b } } . FILTER ( ?k = ?r ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q55 Q36 Q148
P463
Q43229
USER
What organizations had Netherlands, Poland and People's Republic of China as their member ?
(Q55,P463,c(Q43229)) (Q36,P463,c(Q43229)) (Q148,P463,c(Q43229))
action union
action filter_type
action find
entity Q55
relation P463
type Q43229
action filter_type
action find
entity Q36
relation P463
type Q43229
action filter_type
action find
entity Q148
relation P463
type Q43229
['Q55', 'P463', {'concept': 'Q43229'}] ['Q36', 'P463', {'concept': 'Q43229'}] ['Q148', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?x WHERE { { resource:Q55 property:P463 ?x . ?x rdf:type ontology:Q43229 } UNION { resource:Q36 property:P463 ?x . ?x rdf:type ontology:Q43229 } }
Netherlands Poland People's Republic of China
action union
action filter_type
action find
entity Netherlands
relation member of
type organization
action filter_type
action find
entity Poland
relation member of
type organization
action filter_type
action find
entity People's Republic of China
relation member of
type organization
['Netherlands', 'member of', {'concept': 'organization'}] ['Poland', 'member of', {'concept': 'organization'}] ["People's Republic of China", 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?x WHERE { { resource:Netherlands property:member_of ?x . ?x rdf:type ontology:organization } UNION { resource:Poland property:member_of ?x . ?x rdf:type ontology:organization } }
[]
organization
Q7809 Q7809 Q42944
SYSTEM
United Nations Educational, Scientific and Cultural Organization for 1st, 2nd, European Organization for Nuclear Research for 3rd
Q125761 Q1153087 Q309195 Q192247 Q41550 Q340195 Q132551 Q15028 Q689859 Q7809 Q7825 Q161549 Q42944 Q1071706 Q151991 Q461736 Q40970 Q488981 Q386120 Q82151 Q827525 Q191384 Q41550 Q7809 Q7825 Q177773 Q656801 Q827525 Q340195 Q243630 Q485207 Q899770 Q3772571 Q656801 Q191384 Q170481 Q7825 Q827525
(Q55,P463,c(Q43229)) (Q36,P463,c(Q43229)) (Q148,P463,c(Q43229))
action union
action filter_type
action find
entity Q55
relation P463
type Q43229
action filter_type
action find
entity Q36
relation P463
type Q43229
action filter_type
action find
entity Q148
relation P463
type Q43229
[ANSWERS]
['Q55', 'P463', {'concept': 'Q43229'}] ['Q36', 'P463', {'concept': 'Q43229'}] ['Q148', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?x WHERE { { resource:Q55 property:P463 ?x . ?x rdf:type ontology:Q43229 } UNION { resource:Q36 property:P463 ?x . ?x rdf:type ontology:Q43229 } }
International Civil Aviation Organization Inter-American Development Bank Bank for International Settlements European Investment Bank Organisation for Economic Co-operation and Development African Development Bank United Nations High Commissioner for Refugees International Organization for Standardization International Fund for Agricultural Development United Nations Educational, Scientific and Cultural Organization World Trade Organization European Coal and Steel Community European Organization for Nuclear Research International Trade Union Confederation European Southern Observatory Paris Club International Olympic Committee European Bank for Reconstruction and Development United Nations Industrial Development Organization Food and Agriculture Organization of the United Nations International Development Association International Bank for Reconstruction and Development Organisation for Economic Co-operation and Development United Nations Educational, Scientific and Cultural Organization World Trade Organization World Intellectual Property Organization International Finance Corporation International Development Association African Development Bank BRICS Shanghai Cooperation Organisation International Centre for Settlement of Investment Disputes Caribbean Development Bank International Finance Corporation International Bank for Reconstruction and Development Asia-Pacific Economic Cooperation World Trade Organization International Development Association
United Nations Educational, Scientific and Cultural Organization, United Nations Educational, Scientific and Cultural Organization and European Organization for Nuclear Research had Netherlands, Poland and People's Republic of China as their member
United Nations Educational, Scientific and Cultural Organization United Nations Educational, Scientific and Cultural Organization European Organization for Nuclear Research
action union
action filter_type
action find
entity Netherlands
relation member of
type organization
action filter_type
action find
entity Poland
relation member of
type organization
action filter_type
action find
entity People's Republic of China
relation member of
type organization
['Netherlands', 'member of', {'concept': 'organization'}] ['Poland', 'member of', {'concept': 'organization'}] ["People's Republic of China", 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?x WHERE { { resource:Netherlands property:member_of ?x . ?x rdf:type ontology:organization } UNION { resource:Poland property:member_of ?x . ?x rdf:type ontology:organization } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q55
P1071
Q2235308
USER
Which ship types have Netherlands as their final place of assembly ?
(c(Q2235308),P1071,Q7809) (c(Q2235308),P1071,Q7809) (c(Q2235308),P1071,Q42944)
action filter_type
action find_reverse
entity Q55
relation P1071
type Q2235308
[{'concept': 'Q2235308'}, 'P1071', 'Q7809'] [{'concept': 'Q2235308'}, 'P1071', 'Q7809'] [{'concept': 'Q2235308'}, 'P1071', 'Q42944']
SELECT DISTINCT ?q WHERE { ?q property:P1071 resource:Q55 . ?q rdf:type ontology:Q2235308 }
Netherlands
action filter_type
action find_reverse
entity Netherlands
relation location of final assembly
type ship type
[{'concept': 'ship type'}, 'location of final assembly', 'United Nations Educational, Scientific and Cultural Organization'] [{'concept': 'ship type'}, 'location of final assembly', 'United Nations Educational, Scientific and Cultural Organization'] [{'concept': 'ship type'}, 'location of final assembly', 'European Organization for Nuclear Research']
SELECT DISTINCT ?q WHERE { ?q property:location_of_final_assembly resource:Netherlands . ?q rdf:type ontology:ship_type }
[]
ship type
Q5630974 Q19841171
SYSTEM
HMC Searcher, Noah's Ark
Q5630974 Q19841171
(c(Q2235308),P1071,Q7809) (c(Q2235308),P1071,Q7809) (c(Q2235308),P1071,Q42944)
action filter_type
action find_reverse
entity Q55
relation P1071
type Q2235308
[ANSWERS] have Netherlands as their final place of assembly
[{'concept': 'Q2235308'}, 'P1071', 'Q7809'] [{'concept': 'Q2235308'}, 'P1071', 'Q7809'] [{'concept': 'Q2235308'}, 'P1071', 'Q42944']
SELECT DISTINCT ?q WHERE { ?q property:P1071 resource:Q55 . ?q rdf:type ontology:Q2235308 }
HMC Searcher Noah's Ark
HMC Searcher and Noah's Ark have Netherlands as their final place of assembly
HMC Searcher Noah's Ark
action filter_type
action find_reverse
entity Netherlands
relation location of final assembly
type ship type
[{'concept': 'ship type'}, 'location of final assembly', 'United Nations Educational, Scientific and Cultural Organization'] [{'concept': 'ship type'}, 'location of final assembly', 'United Nations Educational, Scientific and Cultural Organization'] [{'concept': 'ship type'}, 'location of final assembly', 'European Organization for Nuclear Research']
SELECT DISTINCT ?q WHERE { ?q property:location_of_final_assembly resource:Netherlands . ?q rdf:type ontology:ship_type }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q490453
P532
Q15617994 Q2235308
USER
How many administrative territories serves as the port of registry of lesser number of ship types than Eckernförde ?
(c(Q2235308),P532,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P532
type Q15617994
type Q2235308
action count
action filter_type
action find_reverse
entity Q490453
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:P532 ?y . ?y rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q2235308 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:P532 resource:Q490453 . ?m rdf:type ontology:Q2235308 } } . FILTER ( ?q < ?b ) }
Eckernförde
action count
action less
action find_reverse_tuple_counts
relation port of registry
type designation for an administrative territorial entity
type ship type
action count
action filter_type
action find_reverse
entity Eckernförde
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:port_of_registry ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:ship_type } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:port_of_registry resource:Eckernförde . ?m rdf:type ontology:ship_type } } . FILTER ( ?q < ?b ) }
[]
designation for an administrative territorial entity ship type
SYSTEM
6
Q55 Q233 Q709 Q145 Q20 Q38
(c(Q2235308),P532,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P532
type Q15617994
type Q2235308
action count
action filter_type
action find_reverse
entity Q490453
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:P532 ?y . ?y rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q2235308 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:P532 resource:Q490453 . ?m rdf:type ontology:Q2235308 } } . FILTER ( ?q < ?b ) }
Netherlands Malta Marshall Islands United Kingdom Norway Italy
6
action count
action less
action find_reverse_tuple_counts
relation port of registry
type designation for an administrative territorial entity
type ship type
action count
action filter_type
action find_reverse
entity Eckernförde
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:port_of_registry ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:ship_type } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { ?m property:port_of_registry resource:Eckernförde . ?m rdf:type ontology:ship_type } } . FILTER ( ?q < ?b ) }
[]