Simple Question (Direct)
Simple Question
Q1143802
P915
Q15617994
USER
Where was Savages filmed ?
(Q1143802,P915,c(Q15617994))
action filter_type
action find
entity Q1143802
relation P915
type Q15617994
['Q1143802', 'P915', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1143802 property:P915 ?o . ?o rdf:type ontology:Q15617994 }
Savages
action filter_type
action find
entity Savages
relation filming location
type designation for an administrative territorial entity
['Savages', 'filming location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Savages property:filming_location ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q252
SYSTEM
Indonesia
Q252
(Q1143802,P915,c(Q15617994))
action filter_type
action find
entity Q1143802
relation P915
type Q15617994
Savages was filmed in [ANSWER]
['Q1143802', 'P915', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1143802 property:P915 ?o . ?o rdf:type ontology:Q15617994 }
Indonesia
Savages was filmed in Indonesia
Indonesia
action filter_type
action find
entity Savages
relation filming location
type designation for an administrative territorial entity
['Savages', 'filming location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Savages property:filming_location ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1143802
P162
Q502895
USER
Who is the producer of that work of art ?
(Q252,P162,c(Q502895))
action filter_type
action find
entity Q1143802
relation P162
type Q502895
['Q252', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q1143802 property:P162 ?d . ?d rdf:type ontology:Q502895 }
Savages
action filter_type
action find
entity Savages
relation producer
type common name
['Indonesia', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Savages property:producer ?d . ?d rdf:type ontology:common_name }
[]
common name
Q114989
SYSTEM
Moritz Borman
Q114989
(Q252,P162,c(Q502895))
action filter_type
action find
entity Q1143802
relation P162
type Q502895
The producer of that work of art is the [ANSWER]
['Q252', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q1143802 property:P162 ?d . ?d rdf:type ontology:Q502895 }
Moritz Borman
The producer of that work of art is the Moritz Borman
Moritz Borman
action filter_type
action find
entity Savages
relation producer
type common name
['Indonesia', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Savages property:producer ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P162
Q838948
USER
How many works of art have been produced by that person ?
(c(Q838948),P162,Q114989)
action count
action filter_type
action find_reverse
entity Q114989
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q114989']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:P162 resource:Q114989 . ?e rdf:type ontology:Q838948 }
action count
action filter_type
action find_reverse
entity Moritz Borman
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Moritz Borman']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:producer resource:Moritz_Borman . ?e rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
10
Q959051 Q1143802 Q1503878 Q19315473 Q191543 Q162277 Q1387340 Q828547 Q952125 Q206589
(c(Q838948),P162,Q114989)
action count
action filter_type
action find_reverse
entity Q114989
relation P162
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P162', 'Q114989']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:P162 resource:Q114989 . ?e rdf:type ontology:Q838948 }
W. Savages National Security Snowden Terminator Salvation Alexander Welcome to Mooseport World Trade Center Suspect Zero Homer and Eddie
10
action count
action filter_type
action find_reverse
entity Moritz Borman
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Moritz Borman']
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { ?e property:producer resource:Moritz_Borman . ?e rdf:type ontology:work_of_art }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1979
P1001
Q15617994 Q17335294 Q14660
USER
Which administrative territories apply to jurisdiction of more number of coats of arms or flags than Prince Edward Island ?
(c(Q17335294)|c(Q14660),P1001,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action count
action filter_multi_types
action find_reverse
entity Q1979
relation P1001
type Q17335294
type Q14660
[[{'concept': 'Q17335294'}, {'concept': 'Q14660'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?x ) WHERE { { ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q14660 . ?c property:P1001 ?s } UNION { ?c property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q17335294 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { { ?j rdf:type ?i . VALUES ( ?i ) { ( ontology:Q14660 ) ( ontology:Q17335294 ) } } . ?j property:P1001 resource:Q1979 } } . FILTER ( ?x > ?t ) }
Prince Edward Island
action greater
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action count
action filter_multi_types
action find_reverse
entity Prince Edward Island
relation applies to jurisdiction
type flag or coat of arms
type flag
[[{'concept': 'flag or coat of arms'}, {'concept': 'flag'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?x ) WHERE { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:flag . ?c property:applies_to_jurisdiction ?s } UNION { ?c property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { { ?j rdf:type ?i . VALUES ( ?i ) { ( ontology:flag ) ( ontology:flag_or_coat_of_arms ) } } . ?j property:applies_to_jurisdiction resource:Prince_Edward_Island } } . FILTER ( ?x > ?t ) }
[]
designation for an administrative territorial entity flag or coat of arms flag
Q30 Q159 Q889
SYSTEM
United States of America, Russia, Afghanistan
Q159 Q889 Q30 Q962 Q176
(c(Q17335294)|c(Q14660),P1001,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action count
action filter_multi_types
action find_reverse
entity Q1979
relation P1001
type Q17335294
type Q14660
[ANSWERS] apply to jurisdiction of more number of coats of arms or flags than Prince Edward Island
[[{'concept': 'Q17335294'}, {'concept': 'Q14660'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?x ) WHERE { { ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q14660 . ?c property:P1001 ?s } UNION { ?c property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q17335294 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { { ?j rdf:type ?i . VALUES ( ?i ) { ( ontology:Q14660 ) ( ontology:Q17335294 ) } } . ?j property:P1001 resource:Q1979 } } . FILTER ( ?x > ?t ) }
Russia Afghanistan United States of America Benin Quebec
United States of America, Russia and Afghanistan apply to jurisdiction of more number of coats of arms or flags than Prince Edward Island
United States of America Russia Afghanistan
action greater
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action count
action filter_multi_types
action find_reverse
entity Prince Edward Island
relation applies to jurisdiction
type flag or coat of arms
type flag
[[{'concept': 'flag or coat of arms'}, {'concept': 'flag'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?x ) WHERE { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:flag . ?c property:applies_to_jurisdiction ?s } UNION { ?c property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { { ?j rdf:type ?i . VALUES ( ?i ) { ( ontology:flag ) ( ontology:flag_or_coat_of_arms ) } } . ?j property:applies_to_jurisdiction resource:Prince_Edward_Island } } . FILTER ( ?x > ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q22273061
P1001
Q15617994 Q17335294 Q14660
USER
And what about Duchy of Nemours?
(c(Q17335294)|c(Q14660),P1001,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action count
action filter_multi_types
action find_reverse
entity Q22273061
relation P1001
type Q17335294
type Q14660
[[{'concept': 'Q17335294'}, {'concept': 'Q14660'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?d WHERE { VALUES ( ?z ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } . ?y rdf:type ?z } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } } . ?e property:P1001 resource:Q22273061 } } . FILTER ( ?c > ?p ) }
Duchy of Nemours
action greater
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action count
action filter_multi_types
action find_reverse
entity Duchy of Nemours
relation applies to jurisdiction
type flag or coat of arms
type flag
[[{'concept': 'flag or coat of arms'}, {'concept': 'flag'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?d WHERE { VALUES ( ?z ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } . ?y rdf:type ?z } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } } . ?e property:applies_to_jurisdiction resource:Duchy_of_Nemours } } . FILTER ( ?c > ?p ) }
[]
designation for an administrative territorial entity flag or coat of arms flag
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q701 Q702 Q804 Q705 Q801 Q707 Q709 Q811 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q189 Q784 Q31 Q265 Q842 Q37 Q398 Q874 Q712 Q711 Q710 Q717 Q837 Q213 Q1028 Q252 Q399 Q403 Q657 Q258 Q1979 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q826 Q822 Q241 Q1965 Q817 Q244 Q1974 Q1019 Q813 Q218 Q33 Q921 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q769680 Q730 Q1013 Q236 Q230 Q1948 Q232 Q233 Q1093 Q238 Q20 Q1045 Q1042 Q1041 Q27 Q28 Q2667658 Q1049 Q1025 Q1027 Q783 Q1020 Q843 Q184 Q1101 Q1029 Q2003 Q736 Q786 Q32 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q1050 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q694 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q211 Q217 Q214 Q215 Q219 Q683 Q242 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q1438 Q34020 Q686 Q836 Q760 Q29 Q574 Q1044 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q776 Q810 Q770 Q773 Q772 Q1014 Q1016 Q1011 Q945 Q678 Q129003 Q800 Q1039 Q672 Q176 Q33788 Q929 Q1267638 Q298 Q863 Q2023 Q869 Q953
(c(Q17335294)|c(Q14660),P1001,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action count
action filter_multi_types
action find_reverse
entity Q22273061
relation P1001
type Q17335294
type Q14660
[ANSWERS]
[[{'concept': 'Q17335294'}, {'concept': 'Q14660'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?d WHERE { VALUES ( ?z ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } . ?y rdf:type ?z } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:Q17335294 ) ( ontology:Q14660 ) } } . ?e property:P1001 resource:Q22273061 } } . FILTER ( ?c > ?p ) }
North Holland Federated States of Micronesia Panama Zeeland Israel Flevoland Marshall Islands Nicaragua Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Iceland Dominica Belgium Uzbekistan Oman Lithuania Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Nepal Czech Republic Morocco Indonesia Armenia Serbia Chad South Africa Prince Edward Island Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Maldives Lebanon Cuba New Brunswick Kuwait Barbados British Columbia Madagascar Kyrgyzstan Romania Finland Brunei United States of America Tanzania Poland Sweden Philippines Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Bornholm Suriname Lesotho Montenegro Georgia Manitoba Kazakhstan Malta Limburg San Marino Norway Somalia Seychelles Senegal Ireland Hungary Shushary, Saint Petersburg Sudan Mauritania Mauritius Honduras Malawi Pakistan Belarus North Brabant Mozambique Newfoundland and Labrador Ecuador Dominican Republic Luxembourg Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Swaziland Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru South Holland Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Ukraine Latvia Republic of Moldova Slovakia Slovenia Bulgaria Samoa Belize Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Côte d'Ivoire Republic of the Congo Comoros Campania Niue Vanuatu Myanmar Saint Lucia Spain East Timor Sierra Leone Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Utrecht Jordan Friesland Overijssel Drenthe Liberia Libya Cape Verde Togo Tonga French Southern and Antarctic Lands Costa Rica Sao Tomé and Príncipe Tuvalu Quebec New Caledonia Central African Republic Beloostrov Chile Tajikistan Nunavut Thailand Zambia
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action count
action filter_multi_types
action find_reverse
entity Duchy of Nemours
relation applies to jurisdiction
type flag or coat of arms
type flag
[[{'concept': 'flag or coat of arms'}, {'concept': 'flag'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) ?d WHERE { VALUES ( ?z ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } . ?y rdf:type ?z } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:flag_or_coat_of_arms ) ( ontology:flag ) } } . ?e property:applies_to_jurisdiction resource:Duchy_of_Nemours } } . FILTER ( ?c > ?p ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q505564
P530
Q15617994
USER
Do Neukamperfehn have diplomatic relations with those ones ?
(Q505564,P530,Q38) (Q505564,P530,Q155) (Q505564,P530,Q30)
action is_in
entity prev_answer
action find
entity Q505564
relation P530
['Q505564', 'P530', 'Q38'] ['Q505564', 'P530', 'Q155'] ['Q505564', 'P530', 'Q30']
ASK WHERE { VALUES ( ?g ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } . resource:Q505564 property:P530 ?g }
Neukamperfehn
action is_in
entity prev_answer
action find
entity Neukamperfehn
relation diplomatic relation
['Neukamperfehn', 'diplomatic relation', 'Italy'] ['Neukamperfehn', 'diplomatic relation', 'Brazil'] ['Neukamperfehn', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?g ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } . resource:Neukamperfehn property:diplomatic_relation ?g }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q505564,P530,Q38) (Q505564,P530,Q155) (Q505564,P530,Q30)
action is_in
entity prev_answer
action find
entity Q505564
relation P530
[ANSWER]
['Q505564', 'P530', 'Q38'] ['Q505564', 'P530', 'Q155'] ['Q505564', 'P530', 'Q30']
ASK WHERE { VALUES ( ?g ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } . resource:Q505564 property:P530 ?g }
No
action is_in
entity prev_answer
action find
entity Neukamperfehn
relation diplomatic relation
['Neukamperfehn', 'diplomatic relation', 'Italy'] ['Neukamperfehn', 'diplomatic relation', 'Brazil'] ['Neukamperfehn', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?g ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } . resource:Neukamperfehn property:diplomatic_relation ?g }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q2697680 Q35
P530
Q1048835
USER
Is Italy known to have diplomatic connections with San Pedro de Chana District and Denmark ?
(Q38,P530,Q2697680) (Q38,P530,Q35)
action is_in
entity Q38
action intersection
action find_reverse
entity Q2697680
relation P530
action find_reverse
entity Q35
relation P530
['Q38', 'P530', 'Q2697680'] ['Q38', 'P530', 'Q35']
ASK WHERE { resource:Q38 property:P530 resource:Q2697680 . resource:Q38 property:P530 resource:Q35 }
Italy San Pedro de Chana District Denmark
action is_in
entity Italy
action intersection
action find_reverse
entity San Pedro de Chana District
relation diplomatic relation
action find_reverse
entity Denmark
relation diplomatic relation
['Italy', 'diplomatic relation', 'San Pedro de Chana District'] ['Italy', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Italy property:diplomatic_relation resource:San_Pedro_de_Chana_District . resource:Italy property:diplomatic_relation resource:Denmark }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q38,P530,Q2697680) (Q38,P530,Q35)
action is_in
entity Q38
action intersection
action find_reverse
entity Q2697680
relation P530
action find_reverse
entity Q35
relation P530
[ANSWER]
['Q38', 'P530', 'Q2697680'] ['Q38', 'P530', 'Q35']
ASK WHERE { resource:Q38 property:P530 resource:Q2697680 . resource:Q38 property:P530 resource:Q35 }
NO and YES respectively
action is_in
entity Italy
action intersection
action find_reverse
entity San Pedro de Chana District
relation diplomatic relation
action find_reverse
entity Denmark
relation diplomatic relation
['Italy', 'diplomatic relation', 'San Pedro de Chana District'] ['Italy', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Italy property:diplomatic_relation resource:San_Pedro_de_Chana_District . resource:Italy property:diplomatic_relation resource:Denmark }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P36
Q515 Q56061
USER
How many cities and administrative territories are called the capital of Brazil ?
(Q155,P36,c(Q515)) (Q155,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q155
relation P36
type Q515
action filter_type
action find
entity Q155
relation P36
type Q56061
['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?k ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?p rdf:type ?k }
Brazil
action count
action union
action filter_type
action find
entity Brazil
relation capital
type city
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?k ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?p rdf:type ?k }
[]
city administrative territorial entity
SYSTEM
1 cities and 1 administrative territories
Q8678 Q2844
(Q155,P36,c(Q515)) (Q155,P36,c(Q56061))
action count
action union
action filter_type
action find
entity Q155
relation P36
type Q515
action filter_type
action find
entity Q155
relation P36
type Q56061
[ANSWER]
['Q155', 'P36', {'concept': 'Q515'}] ['Q155', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?k ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?p rdf:type ?k }
Rio de Janeiro Brasília
1 cities and 1 administrative territories
action count
action union
action filter_type
action find
entity Brazil
relation capital
type city
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'city'}] ['Brazil', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { VALUES ( ?k ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?p rdf:type ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P1433
Q2342494
USER
Which collectable was published in United Kingdom ?
(c(Q2342494),P1433,Q145)
action filter_type
action find_reverse
entity Q145
relation P1433
type Q2342494
[{'concept': 'Q2342494'}, 'P1433', 'Q145']
SELECT DISTINCT ?u WHERE { ?u property:P1433 resource:Q145 . ?u rdf:type ontology:Q2342494 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation published in
type collectable
[{'concept': 'collectable'}, 'published in', 'United Kingdom']
SELECT DISTINCT ?u WHERE { ?u property:published_in resource:United_Kingdom . ?u rdf:type ontology:collectable }
[]
collectable
Q27514793
SYSTEM
Who Was Who in Egyptology (3rd Edition)
Q27514793
(c(Q2342494),P1433,Q145)
action filter_type
action find_reverse
entity Q145
relation P1433
type Q2342494
Who was Who in Egyptology (3rd Edition) was published in United Kingdom
[{'concept': 'Q2342494'}, 'P1433', 'Q145']
SELECT DISTINCT ?u WHERE { ?u property:P1433 resource:Q145 . ?u rdf:type ontology:Q2342494 }
Who Was Who in Egyptology (3rd Edition)
Who was Who in Egyptology (3rd Edition) was published in United Kingdom
Who Was Who in Egyptology (3rd Edition)
action filter_type
action find_reverse
entity United Kingdom
relation published in
type collectable
[{'concept': 'collectable'}, 'published in', 'United Kingdom']
SELECT DISTINCT ?u WHERE { ?u property:published_in resource:United_Kingdom . ?u rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P1532
Q502895
USER
Who represent that administrative territory ?
(c(Q502895),P1532,Q27514793)
action filter_type
action find_reverse
entity Q145
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q27514793']
SELECT DISTINCT ?q WHERE { ?q property:P1532 resource:Q145 . ?q rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Who Was Who in Egyptology (3rd Edition)']
SELECT DISTINCT ?q WHERE { ?q property:country_for_sport resource:United_Kingdom . ?q rdf:type ontology:common_name }
[]
common name
Q21402269 Q23899221 Q16019708
SYSTEM
Alison Wyeth, John Nuttall, Andy Holden
Q21402269 Q23801215 Q23933231 Q16570372 Q23839484 Q26464525 Q24689189 Q25841148 Q25712393 Q21858372 Q22679450 Q21858356 Q24055567 Q22159069 Q16197248 Q23899221 Q3489581 Q21675005 Q16019708 Q23907033 Q9140805 Q2849387 Q26217926 Q14914875 Q16210580 Q26217998 Q23010253 Q7815016 Q21808670 Q23834462 Q23838005
(c(Q502895),P1532,Q27514793)
action filter_type
action find_reverse
entity Q145
relation P1532
type Q502895
[ANSWERS] represent that administrative territory
[{'concept': 'Q502895'}, 'P1532', 'Q27514793']
SELECT DISTINCT ?q WHERE { ?q property:P1532 resource:Q145 . ?q rdf:type ontology:Q502895 }
Alison Wyeth Birhan Dagne Geoff Saunders Kyle Langford Ray Middleton Colin Walker Bryony Page Elliot Giles Rachel Wallader Jacqui Agyepong Rod Finch Craig Winrow Tracey Morris Andrew Pearson Lesley-Ann Skeete John Nuttall Solomon Wariso Sonia McGeorge Andy Holden Simon Fairbrother Adelle Tracey Angela Tooby Ann Williams Nethaneel Mitchell-Blake Keri Lees Hugh Teape Stephi Douglas Tom Bosworth Donovan Reid Carol Tyson George Williams
Alison Wyeth, John Nuttall and Andy Holden represent that administrative territory
Alison Wyeth John Nuttall Andy Holden
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Who Was Who in Egyptology (3rd Edition)']
SELECT DISTINCT ?q WHERE { ?q property:country_for_sport resource:United_Kingdom . ?q rdf:type ontology:common_name }
[]