Simple Question (Direct)
Simple Question
Q16217429
P102
Q7210356
USER
Which party does Ana Hernandez Luna belong to ?
(Q16217429,P102,c(Q7210356))
action filter_type
action find
entity Q16217429
relation P102
type Q7210356
['Q16217429', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q16217429 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Ana Hernandez Luna
action filter_type
action find
entity Ana Hernandez Luna
relation member of political party
type political organization
['Ana Hernandez Luna', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Ana_Hernandez_Luna property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q16217429,P102,c(Q7210356))
action filter_type
action find
entity Q16217429
relation P102
type Q7210356
Ana Hernandez Luna belongs to [ANSWER]
['Q16217429', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { resource:Q16217429 property:P102 ?k . ?k rdf:type ontology:Q7210356 }
Democratic Party
Ana Hernandez Luna belongs to Democratic Party
Democratic Party
action filter_type
action find
entity Ana Hernandez Luna
relation member of political party
type political organization
['Ana Hernandez Luna', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { resource:Ana_Hernandez_Luna property:member_of_political_party ?k . ?k rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16217429
P937
Q56061
USER
Which administrative territory is the work location of that person ?
(Q29552,P937,c(Q56061))
action filter_type
action find
entity Q16217429
relation P937
type Q56061
['Q29552', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q16217429 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Ana Hernandez Luna
action filter_type
action find
entity Ana Hernandez Luna
relation work location
type administrative territorial entity
['Democratic Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Ana_Hernandez_Luna property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16559
SYSTEM
Austin
Q16559
(Q29552,P937,c(Q56061))
action filter_type
action find
entity Q16217429
relation P937
type Q56061
[ANSWER] is the work location of that person
['Q29552', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q16217429 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Austin
Austin is the work location of that person
Austin
action filter_type
action find
entity Ana Hernandez Luna
relation work location
type administrative territorial entity
['Democratic Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Ana_Hernandez_Luna property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5559247 Q16217429
P27
Q15617994
USER
Which administrative territories are the native countriesof Ana Hernandez Luna or Gibrilla Bangura ?
OR((Q16217429,P27,c(Q15617994)), (Q5559247,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16217429
relation P27
action find
entity Q5559247
relation P27
type Q15617994
{'OR': [['Q16217429', 'P27', {'concept': 'Q15617994'}], ['Q5559247', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?b property:P27 ?n . VALUES ( ?b ) { ( resource:Q16217429 ) ( resource:Q5559247 ) } } . ?n rdf:type ontology:Q15617994 }
Gibrilla Bangura Ana Hernandez Luna
action filter_type
action union
action find
entity Ana Hernandez Luna
relation country of citizenship
action find
entity Gibrilla Bangura
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ana Hernandez Luna', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gibrilla Bangura', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?b property:country_of_citizenship ?n . VALUES ( ?b ) { ( resource:Ana_Hernandez_Luna ) ( resource:Gibrilla_Bangura ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q1044
SYSTEM
United States of America, Sierra Leone
Q30 Q1044
OR((Q16217429,P27,c(Q15617994)), (Q5559247,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16217429
relation P27
action find
entity Q5559247
relation P27
type Q15617994
[ANSWERS] are the native countriesof Ana Hernandez Luna or Gibrilla Bangura
{'OR': [['Q16217429', 'P27', {'concept': 'Q15617994'}], ['Q5559247', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?b property:P27 ?n . VALUES ( ?b ) { ( resource:Q16217429 ) ( resource:Q5559247 ) } } . ?n rdf:type ontology:Q15617994 }
United States of America Sierra Leone
United States of America and Sierra Leone are the native countriesof Ana Hernandez Luna or Gibrilla Bangura
United States of America Sierra Leone
action filter_type
action union
action find
entity Ana Hernandez Luna
relation country of citizenship
action find
entity Gibrilla Bangura
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ana Hernandez Luna', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gibrilla Bangura', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?b property:country_of_citizenship ?n . VALUES ( ?b ) { ( resource:Ana_Hernandez_Luna ) ( resource:Gibrilla_Bangura ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q517728
P27
Q502895
USER
Are Félix Urtubi a native of those administrative territories ?
(Q517728,P27,Q30) (Q517728,P27,Q1044)
action is_in
entity prev_answer
action find
entity Q517728
relation P27
['Q517728', 'P27', 'Q30'] ['Q517728', 'P27', 'Q1044']
ASK WHERE { VALUES ( ?n ) { ( resource:Q30 ) ( resource:Q1044 ) } . resource:Q517728 property:P27 ?n }
Félix Urtubi
action is_in
entity prev_answer
action find
entity Félix Urtubi
relation country of citizenship
['Félix Urtubi', 'country of citizenship', 'United States of America'] ['Félix Urtubi', 'country of citizenship', 'Sierra Leone']
ASK WHERE { VALUES ( ?n ) { ( resource:United_States_of_America ) ( resource:Sierra_Leone ) } . resource:Félix_Urtubi property:country_of_citizenship ?n }
[]
common name
SYSTEM
NO
(Q517728,P27,Q30) (Q517728,P27,Q1044)
action is_in
entity prev_answer
action find
entity Q517728
relation P27
[ANSWER]
['Q517728', 'P27', 'Q30'] ['Q517728', 'P27', 'Q1044']
ASK WHERE { VALUES ( ?n ) { ( resource:Q30 ) ( resource:Q1044 ) } . resource:Q517728 property:P27 ?n }
No
action is_in
entity prev_answer
action find
entity Félix Urtubi
relation country of citizenship
['Félix Urtubi', 'country of citizenship', 'United States of America'] ['Félix Urtubi', 'country of citizenship', 'Sierra Leone']
ASK WHERE { VALUES ( ?n ) { ( resource:United_States_of_America ) ( resource:Sierra_Leone ) } . resource:Félix_Urtubi property:country_of_citizenship ?n }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16217429 Q30
P27
Q15617994
USER
Is United States of America the native country of Ana Hernandez Luna ?
(Q16217429,P27,Q30)
action is_in
entity Q30
action find
entity Q16217429
relation P27
['Q16217429', 'P27', 'Q30']
ASK WHERE { resource:Q16217429 property:P27 resource:Q30 }
Ana Hernandez Luna United States of America
action is_in
entity United States of America
action find
entity Ana Hernandez Luna
relation country of citizenship
['Ana Hernandez Luna', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Ana_Hernandez_Luna property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q16217429,P27,Q30)
action is_in
entity Q30
action find
entity Q16217429
relation P27
[ANSWER]
['Q16217429', 'P27', 'Q30']
ASK WHERE { resource:Q16217429 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Ana Hernandez Luna
relation country of citizenship
['Ana Hernandez Luna', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Ana_Hernandez_Luna property:country_of_citizenship resource:United_States_of_America }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q39
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with more number of administrative territories than Switzerland ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q39
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?y ) WHERE { ?s property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { ?v rdf:type ontology:Q15617994 . resource:Q39 property:P530 ?v } } . FILTER ( ?y > ?w ) }
Switzerland
action count
action greater
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 Switzerland
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 ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?y ) WHERE { ?s property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Switzerland property:diplomatic_relation ?v } } . FILTER ( ?y > ?w ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
43
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q34 Q38 Q423 Q27 Q843 Q227 Q222 Q347 Q17 Q1033 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q39
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?y ) WHERE { ?s property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { ?v rdf:type ontology:Q15617994 . resource:Q39 property:P530 ?v } } . FILTER ( ?y > ?w ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Sweden Italy North Korea Ireland Pakistan Azerbaijan Albania Liechtenstein Japan Nigeria Czech Republic Angola Egypt Libya Cape Verde Zambia
43
action count
action greater
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 Switzerland
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 ( COUNT ( ?s ) AS ?p ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?y ) WHERE { ?s property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Switzerland property:diplomatic_relation ?v } } . FILTER ( ?y > ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q695
P530
Q15617994 Q15617994
USER
And also tell me about Palau?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q695
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Q695 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?l > ?s ) . { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?o } }
Palau
action count
action greater
action find_reverse_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 Palau
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 ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Palau property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l > ?s ) . { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
141
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q37 Q711 Q710 Q717 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q819 Q424 Q1013 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q34020 Q686 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q695
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Q695 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?l > ?s ) . { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?o } }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Lithuania Mongolia Kiribati Venezuela Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Laos Cambodia Lesotho Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Niue Vanuatu East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
141
action count
action greater
action find_reverse_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 Palau
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 ( COUNT ( ?o ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Palau property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?l > ?s ) . { SELECT DISTINCT ?o ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q1267889 Q355304 Q15617994
USER
Which administrative territories are located next to min number of waterways and watercourses ?
(c(Q15617994),P206,c(Q1267889)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q355304
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?l WHERE { { ?l property:P206 ?h . ?l rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1267889 } UNION { ?l property:P206 ?h . ?l rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q355304 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?i WHERE { { ?i property:P206 ?s . ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1267889 } UNION { ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q355304 . ?i property:P206 ?s } } GROUP BY ?i } . FILTER ( ?t = ?v ) }
action argmin
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?l WHERE { { ?l property:located_next_to_body_of_water ?h . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:waterway } UNION { ?l property:located_next_to_body_of_water ?h . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:watercourse } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?i WHERE { { ?i property:located_next_to_body_of_water ?s . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:waterway } UNION { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:watercourse . ?i property:located_next_to_body_of_water ?s } } GROUP BY ?i } . FILTER ( ?t = ?v ) }
[]
waterway watercourse designation for an administrative territorial entity
Q38 Q55 Q17
SYSTEM
Italy, Netherlands, Japan
Q21111 Q505785 Q104577 Q446425 Q3066319 Q668 Q525879 Q55 Q47585 Q1604782 Q6237 Q2316529 Q508863 Q568926 Q1009384 Q657 Q622487 Q4628 Q884 Q664950 Q161258 Q263451 Q442666 Q3111694 Q244095 Q7566251 Q38 Q3352704 Q769680 Q519663 Q2360428 Q236 Q681329 Q560870 Q20 Q29 Q690219 Q511806 Q3038 Q2043234 Q42265 Q225 Q224 Q222 Q229 Q17 Q1577 Q516567 Q547059 Q215 Q1604772 Q1009 Q1438 Q20267 Q194136 Q895413 Q567984 Q1604766 Q948 Q1974 Q4149191 Q47612
(c(Q15617994),P206,c(Q1267889)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
action find_tuple_counts
relation P206
type Q15617994
type Q355304
[ANSWERS] are located next to min number of waterways and watercourses
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?l WHERE { { ?l property:P206 ?h . ?l rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1267889 } UNION { ?l property:P206 ?h . ?l rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q355304 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?i WHERE { { ?i property:P206 ?s . ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1267889 } UNION { ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q355304 . ?i property:P206 ?s } } GROUP BY ?i } . FILTER ( ?t = ?v ) }
Corn Islands Pförring Desenzano del Garda Altwarp Fala-Beguets India Haundorf Netherlands Garda Ulul Lecco Noordpolderzijl Mindelstetten Maasholm Weno Chad Päwesin Faroe Islands South Korea Loddin Clipperton Island Oberdolling Altmannstein Gouraya, Tipaza Bellagio South Bay Italy Oneop Bornholm Kösching Tijuana Municipality Montenegro Dümmer Owschlag Norway Spain Perlin North Slope Borough Helgoland Almere Buiten Abbadia Lariana Bosnia and Herzegovina Croatia Albania Cyprus Japan Neuwerk Kappeln Gnotzheim Slovenia Moch Cameroon Campania Schwarz Riva del Garda Bowen Island Woleai Pisaras Tunisia British Columbia Grigorovo Domaso
Italy, Netherlands and Japan are located next to min number of waterways and watercourses
Italy Netherlands Japan
action argmin
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?l WHERE { { ?l property:located_next_to_body_of_water ?h . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:waterway } UNION { ?l property:located_next_to_body_of_water ?h . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:watercourse } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?i WHERE { { ?i property:located_next_to_body_of_water ?s . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:waterway } UNION { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:watercourse . ?i property:located_next_to_body_of_water ?s } } GROUP BY ?i } . FILTER ( ?t = ?v ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Do Australia have tactful political relations with those administrative territories ?
(Q408,P530,Q38) (Q408,P530,Q55) (Q408,P530,Q17)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q38'] ['Q408', 'P530', 'Q55'] ['Q408', 'P530', 'Q17']
ASK WHERE { VALUES ( ?t ) { ( resource:Q21111 ) ( resource:Q505785 ) ( resource:Q104577 ) } . resource:Q408 property:P530 ?t }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Italy'] ['Australia', 'diplomatic relation', 'Netherlands'] ['Australia', 'diplomatic relation', 'Japan']
ASK WHERE { VALUES ( ?t ) { ( resource:Corn_Islands ) ( resource:Pförring ) ( resource:Desenzano_del_Garda ) } . resource:Australia property:diplomatic_relation ?t }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q38) (Q408,P530,Q55) (Q408,P530,Q17)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q38'] ['Q408', 'P530', 'Q55'] ['Q408', 'P530', 'Q17']
ASK WHERE { VALUES ( ?t ) { ( resource:Q21111 ) ( resource:Q505785 ) ( resource:Q104577 ) } . resource:Q408 property:P530 ?t }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Italy'] ['Australia', 'diplomatic relation', 'Netherlands'] ['Australia', 'diplomatic relation', 'Japan']
ASK WHERE { VALUES ( ?t ) { ( resource:Corn_Islands ) ( resource:Pförring ) ( resource:Desenzano_del_Garda ) } . resource:Australia property:diplomatic_relation ?t }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with atmost 32 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 32
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?z <= 32 ) . { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { ?p property:P530 ?g . ?p rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?p } }
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 32
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?z <= 32 ) . { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { ?p property:diplomatic_relation ?g . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q159 Q55
SYSTEM
United States of America, Russia, Netherlands
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 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 Q114 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 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 32
[ANSWERS] have diplomatic associations with atmost 32 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?z <= 32 ) . { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { ?p property:P530 ?g . ?p rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?p } }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic 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 Kenya 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 Zambia
United States of America, Russia and Netherlands have diplomatic associations with atmost 32 administrative territories
United States of America Russia Netherlands
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 32
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?z <= 32 ) . { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { ?p property:diplomatic_relation ?g . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4326058
P530
Q1048835
USER
Do Novoukrainka have ambassadorial relations with those administrative territories ?
(Q4326058,P530,Q30) (Q4326058,P530,Q159) (Q4326058,P530,Q55)
action is_in
entity prev_answer
action find
entity Q4326058
relation P530
['Q4326058', 'P530', 'Q30'] ['Q4326058', 'P530', 'Q159'] ['Q4326058', 'P530', 'Q55']
ASK WHERE { VALUES ( ?k ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q4326058 property:P530 ?k }
Novoukrainka
action is_in
entity prev_answer
action find
entity Novoukrainka
relation diplomatic relation
['Novoukrainka', 'diplomatic relation', 'United States of America'] ['Novoukrainka', 'diplomatic relation', 'Russia'] ['Novoukrainka', 'diplomatic relation', 'Netherlands']
ASK WHERE { VALUES ( ?k ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . resource:Novoukrainka property:diplomatic_relation ?k }
[]
political territorial entity
SYSTEM
NO
(Q4326058,P530,Q30) (Q4326058,P530,Q159) (Q4326058,P530,Q55)
action is_in
entity prev_answer
action find
entity Q4326058
relation P530
[ANSWER]
['Q4326058', 'P530', 'Q30'] ['Q4326058', 'P530', 'Q159'] ['Q4326058', 'P530', 'Q55']
ASK WHERE { VALUES ( ?k ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q4326058 property:P530 ?k }
No
action is_in
entity prev_answer
action find
entity Novoukrainka
relation diplomatic relation
['Novoukrainka', 'diplomatic relation', 'United States of America'] ['Novoukrainka', 'diplomatic relation', 'Russia'] ['Novoukrainka', 'diplomatic relation', 'Netherlands']
ASK WHERE { VALUES ( ?k ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . resource:Novoukrainka property:diplomatic_relation ?k }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q110446 Q159
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with Russia or do Ulrich Werner Grimm belong to ?
OR((Q159,P530,c(Q1048835)), (Q110446,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q159
relation P530
action find
entity Q110446
relation P27
type Q1048835
{'OR': [['Q159', 'P530', {'concept': 'Q1048835'}], ['Q110446', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q110446 property:P27 ?b } UNION { resource:Q159 property:P530 ?b } } . ?b rdf:type ontology:Q1048835 }
Ulrich Werner Grimm Russia
action filter_type
action union
action find
entity Russia
relation diplomatic relation
action find
entity Ulrich Werner Grimm
relation country of citizenship
type political territorial entity
{'OR': [['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Ulrich Werner Grimm', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Ulrich_Werner_Grimm property:country_of_citizenship ?b } UNION { resource:Russia property:diplomatic_relation ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q16 Q183
SYSTEM
Australia, Canada, Germany
Q408 Q16 Q183
OR((Q159,P530,c(Q1048835)), (Q110446,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q159
relation P530
action find
entity Q110446
relation P27
type Q1048835
[ANSWERS] have diplomatic relationships with Russia or do Ulrich Werner Grimm belong to
{'OR': [['Q159', 'P530', {'concept': 'Q1048835'}], ['Q110446', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q110446 property:P27 ?b } UNION { resource:Q159 property:P530 ?b } } . ?b rdf:type ontology:Q1048835 }
Australia Canada Germany
Australia, Canada and Germany have diplomatic relationships with Russia or do Ulrich Werner Grimm belong to
Australia Canada Germany
action filter_type
action union
action find
entity Russia
relation diplomatic relation
action find
entity Ulrich Werner Grimm
relation country of citizenship
type political territorial entity
{'OR': [['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Ulrich Werner Grimm', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Ulrich_Werner_Grimm property:country_of_citizenship ?b } UNION { resource:Russia property:diplomatic_relation ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P921
Q571 Q234460
USER
How many books or texts are that political territory a main subject of ?
(c(Q571),P921,Q183) (c(Q234460),P921,Q183) (c(Q571),P921,Q408) (c(Q234460),P921,Q408) (c(Q571),P921,Q16) (c(Q234460),P921,Q16) (c(Q571),P921,Q183) (c(Q234460),P921,Q183)
[{'concept': 'Q571'}, 'P921', 'Q183'] [{'concept': 'Q234460'}, 'P921', 'Q183'] [{'concept': 'Q571'}, 'P921', 'Q408'] [{'concept': 'Q234460'}, 'P921', 'Q408'] [{'concept': 'Q571'}, 'P921', 'Q16'] [{'concept': 'Q234460'}, 'P921', 'Q16'] [{'concept': 'Q571'}, 'P921', 'Q183'] [{'concept': 'Q234460'}, 'P921', 'Q183']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P921 resource:Q423030 } UNION { ?y property:P921 resource:Q423030 } UNION { ?z property:P921 resource:Q17666015 } UNION { ?y property:P921 resource:Q17666015 } UNION { ?z property:P921 resource:Q1031917 } UNION { ?y property:P921 resource:Q1031917 } UNION { ?z property:P921 resource:Q423030 } UNION { ?y property:P921 resource:Q423030 } } . ?z rdf:type ontology:Q997698 . ?y rdf:type ontology:Q234460 }
[{'concept': 'book'}, 'main subject', 'Germany'] [{'concept': 'text'}, 'main subject', 'Germany'] [{'concept': 'book'}, 'main subject', 'Australia'] [{'concept': 'text'}, 'main subject', 'Australia'] [{'concept': 'book'}, 'main subject', 'Canada'] [{'concept': 'text'}, 'main subject', 'Canada'] [{'concept': 'book'}, 'main subject', 'Germany'] [{'concept': 'text'}, 'main subject', 'Germany']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:main_subject resource:Germany } UNION { ?y property:main_subject resource:Germany } UNION { ?z property:main_subject resource:Australia } UNION { ?y property:main_subject resource:Australia } UNION { ?z property:main_subject resource:Canada } UNION { ?y property:main_subject resource:Canada } UNION { ?z property:main_subject resource:Germany } UNION { ?y property:main_subject resource:Germany } } . ?z rdf:type ontology:book . ?y rdf:type ontology:text }
[]
book text
Quantitative|Count|Mult. entity type|Clarification
Q183
SYSTEM
Did you mean Germany ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P921 resource:Q423030 } UNION { ?y property:P921 resource:Q423030 } UNION { ?z property:P921 resource:Q17666015 } UNION { ?y property:P921 resource:Q17666015 } UNION { ?z property:P921 resource:Q1031917 } UNION { ?y property:P921 resource:Q1031917 } UNION { ?z property:P921 resource:Q423030 } UNION { ?y property:P921 resource:Q423030 } } . ?z rdf:type ontology:Q997698 . ?y rdf:type ontology:Q234460 }
Did you mean Germany ?
Germany
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:main_subject resource:Germany } UNION { ?y property:main_subject resource:Germany } UNION { ?z property:main_subject resource:Australia } UNION { ?y property:main_subject resource:Australia } UNION { ?z property:main_subject resource:Canada } UNION { ?y property:main_subject resource:Canada } UNION { ?z property:main_subject resource:Germany } UNION { ?y property:main_subject resource:Germany } } . ?z rdf:type ontology:book . ?y rdf:type ontology:text }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q571),P921,Q183) (c(Q234460),P921,Q183) (c(Q571),P921,Q408) (c(Q234460),P921,Q408) (c(Q571),P921,Q16) (c(Q234460),P921,Q16) (c(Q571),P921,Q183) (c(Q234460),P921,Q183)
[{'concept': 'Q571'}, 'P921', 'Q183'] [{'concept': 'Q234460'}, 'P921', 'Q183'] [{'concept': 'Q571'}, 'P921', 'Q408'] [{'concept': 'Q234460'}, 'P921', 'Q408'] [{'concept': 'Q571'}, 'P921', 'Q16'] [{'concept': 'Q234460'}, 'P921', 'Q16'] [{'concept': 'Q571'}, 'P921', 'Q183'] [{'concept': 'Q234460'}, 'P921', 'Q183']
[{'concept': 'book'}, 'main subject', 'Germany'] [{'concept': 'text'}, 'main subject', 'Germany'] [{'concept': 'book'}, 'main subject', 'Australia'] [{'concept': 'text'}, 'main subject', 'Australia'] [{'concept': 'book'}, 'main subject', 'Canada'] [{'concept': 'text'}, 'main subject', 'Canada'] [{'concept': 'book'}, 'main subject', 'Germany'] [{'concept': 'text'}, 'main subject', 'Germany']
[]
SYSTEM
3
Q1203143 Q15291012 Q250125
(c(Q571),P921,Q183) (c(Q234460),P921,Q183) (c(Q571),P921,Q408) (c(Q234460),P921,Q408) (c(Q571),P921,Q16) (c(Q234460),P921,Q16) (c(Q571),P921,Q183) (c(Q234460),P921,Q183)
[ANSWER]
[{'concept': 'Q571'}, 'P921', 'Q183'] [{'concept': 'Q234460'}, 'P921', 'Q183'] [{'concept': 'Q571'}, 'P921', 'Q408'] [{'concept': 'Q234460'}, 'P921', 'Q408'] [{'concept': 'Q571'}, 'P921', 'Q16'] [{'concept': 'Q234460'}, 'P921', 'Q16'] [{'concept': 'Q571'}, 'P921', 'Q183'] [{'concept': 'Q234460'}, 'P921', 'Q183']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P921 resource:Q423030 } UNION { ?y property:P921 resource:Q423030 } UNION { ?z property:P921 resource:Q17666015 } UNION { ?y property:P921 resource:Q17666015 } UNION { ?z property:P921 resource:Q1031917 } UNION { ?y property:P921 resource:Q1031917 } UNION { ?z property:P921 resource:Q423030 } UNION { ?y property:P921 resource:Q423030 } } . ?z rdf:type ontology:Q997698 . ?y rdf:type ontology:Q234460 }
Listen, Germany! Writers and Radio Lotte in Weimar: The Beloved Returns
3
[{'concept': 'book'}, 'main subject', 'Germany'] [{'concept': 'text'}, 'main subject', 'Germany'] [{'concept': 'book'}, 'main subject', 'Australia'] [{'concept': 'text'}, 'main subject', 'Australia'] [{'concept': 'book'}, 'main subject', 'Canada'] [{'concept': 'text'}, 'main subject', 'Canada'] [{'concept': 'book'}, 'main subject', 'Germany'] [{'concept': 'text'}, 'main subject', 'Germany']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:main_subject resource:Germany } UNION { ?y property:main_subject resource:Germany } UNION { ?z property:main_subject resource:Australia } UNION { ?y property:main_subject resource:Australia } UNION { ?z property:main_subject resource:Canada } UNION { ?y property:main_subject resource:Canada } UNION { ?z property:main_subject resource:Germany } UNION { ?y property:main_subject resource:Germany } } . ?z rdf:type ontology:book . ?y rdf:type ontology:text }
[]