Simple Question (Direct)
Simple Question
Q11976207
P495
Q15617994
USER
Where did Hvaler originate ?
(Q11976207,P495,c(Q15617994))
action filter_type
action find
entity Q11976207
relation P495
type Q15617994
['Q11976207', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q11976207 property:P495 ?a . ?a rdf:type ontology:Q15617994 }
Hvaler
action filter_type
action find
entity Hvaler
relation country of origin
type designation for an administrative territorial entity
['Hvaler', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Hvaler property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q11976207,P495,c(Q15617994))
action filter_type
action find
entity Q11976207
relation P495
type Q15617994
Hvaler originated in [ANSWER]
['Q11976207', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q11976207 property:P495 ?a . ?a rdf:type ontology:Q15617994 }
Norway
Hvaler originated in Norway
Norway
action filter_type
action find
entity Hvaler
relation country of origin
type designation for an administrative territorial entity
['Hvaler', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Hvaler property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11976207
P1027
Q618779
USER
Which award bestows that television program ?
(Q20,P1027,c(Q618779))
action filter_type
action find
entity Q11976207
relation P1027
type Q618779
['Q20', 'P1027', {'concept': 'Q618779'}]
SELECT DISTINCT ?a WHERE { resource:Q11976207 property:P1027 ?a . ?a rdf:type ontology:Q618779 }
Hvaler
action filter_type
action find
entity Hvaler
relation conferred by
type award
['Norway', 'conferred by', {'concept': 'award'}]
SELECT DISTINCT ?a WHERE { resource:Hvaler property:conferred_by ?a . ?a rdf:type ontology:award }
[]
award
Q12601091
SYSTEM
Seoul International Drama Awards
Q12601091
(Q20,P1027,c(Q618779))
action filter_type
action find
entity Q11976207
relation P1027
type Q618779
[ANSWER] bestows that television program
['Q20', 'P1027', {'concept': 'Q618779'}]
SELECT DISTINCT ?a WHERE { resource:Q11976207 property:P1027 ?a . ?a rdf:type ontology:Q618779 }
Seoul International Drama Awards
Seoul International Drama Awards bestows that television program
Seoul International Drama Awards
action filter_type
action find
entity Hvaler
relation conferred by
type award
['Norway', 'conferred by', {'concept': 'award'}]
SELECT DISTINCT ?a WHERE { resource:Hvaler property:conferred_by ?a . ?a rdf:type ontology:award }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q784
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories holds diplomatic relationship with more number of administrative territories or political territories than Dominica ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q784
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { { ?c rdf:type ontology:Q15617994 } UNION { ?c rdf:type ontology:Q1048835 } } . ?c property:P530 resource:Q784 } } . FILTER ( ?i > ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) ?o WHERE { ?g rdf:type ?q . VALUES ( ?q ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?o } }
Dominica
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Dominica
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c rdf:type ontology:political_territorial_entity } } . ?c property:diplomatic_relation resource:Dominica } } . FILTER ( ?i > ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) ?o WHERE { ?g rdf:type ?q . VALUES ( ?q ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?o } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q819 Q424 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1020 Q189 Q843 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 Q34020 Q686 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q784
relation P530
type Q15617994
type Q1048835
[ANSWERS] hold diplomatic relationship with more number of administrative territories or political territories than Dominica
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { { ?c rdf:type ontology:Q15617994 } UNION { ?c rdf:type ontology:Q1048835 } } . ?c property:P530 resource:Q784 } } . FILTER ( ?i > ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) ?o WHERE { ?g rdf:type ?q . VALUES ( ?q ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?o } }
Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Laos Cambodia Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Malawi Iceland Pakistan 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 Niue Vanuatu East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America hold diplomatic relationship with more number of administrative territories or political territories than Dominica
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Dominica
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { { { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?c rdf:type ontology:political_territorial_entity } } . ?c property:diplomatic_relation resource:Dominica } } . FILTER ( ?i > ?j ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) ?o WHERE { ?g rdf:type ?q . VALUES ( ?q ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?o } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q902
P530
Q15617994 Q15617994 Q1048835
USER
And how about Bangladesh?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q902
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P530 resource:Q902 . { { ?o rdf:type ontology:Q15617994 } UNION { ?o rdf:type ontology:Q1048835 } } } } . FILTER ( ?a > ?j ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?a ) WHERE { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?w } }
Bangladesh
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Bangladesh
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:diplomatic_relation resource:Bangladesh . { { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?o rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?a > ?j ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?a ) WHERE { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?w } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q843 Q1029 Q227 Q224 Q222 Q229 Q347 Q17 Q1033 Q1030 Q298 Q115 Q114 Q212 Q213 Q215 Q916 Q79 Q77 Q878 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q902
relation P530
type Q15617994
type Q1048835
[ANSWERS]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P530 resource:Q902 . { { ?o rdf:type ontology:Q15617994 } UNION { ?o rdf:type ontology:Q1048835 } } } } . FILTER ( ?a > ?j ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?a ) WHERE { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?w } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Pakistan Mozambique Azerbaijan Croatia Albania Cyprus Liechtenstein Japan Nigeria Namibia Chile Ethiopia Kenya Ukraine Czech Republic Slovenia Angola Egypt Uruguay United Arab Emirates Jordan Libya Cape Verde Spain Zambia
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Bangladesh
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:diplomatic_relation resource:Bangladesh . { { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?o rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?a > ?j ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?a ) WHERE { ?e rdf:type ?d . VALUES ( ?d ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q627337 Q155
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Brazil or are Rui Duarte de Barros a civilian of ?
OR((Q155,P530,c(Q15617994)), (Q627337,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P530
action find
entity Q627337
relation P27
type Q15617994
{'OR': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q627337', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q155 property:P530 ?b } UNION { resource:Q627337 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Rui Duarte de Barros Brazil
action filter_type
action union
action find
entity Brazil
relation diplomatic relation
action find
entity Rui Duarte de Barros
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Rui Duarte de Barros', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Brazil property:diplomatic_relation ?b } UNION { resource:Rui_Duarte_de_Barros property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213 Q843 Q41 Q423 Q30 Q212 Q916 Q750 Q790 Q414
SYSTEM
Some of them are Czech Republic, Pakistan, Greece, North Korea, United States of America, Ukraine, Angola, Bolivia, Haiti, Argentina
Q783 Q1007 Q801 Q800 Q843 Q1029 Q822 Q241 Q419 Q244 Q668 Q414 Q574 Q142 Q145 Q148 Q96 Q17 Q30 Q36 Q79 Q77 Q38 Q1016 Q739 Q423 Q717 Q983 Q733 Q1011 Q962 Q736 Q298 Q252 Q399 Q403 Q258 Q750 Q212 Q213 Q45 Q159 Q43 Q41 Q734 Q790 Q796 Q794 Q917 Q1033 Q29 Q958 Q1049 Q916
OR((Q155,P530,c(Q15617994)), (Q627337,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P530
action find
entity Q627337
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Brazil or are Rui Duarte de Barros a civilian of
{'OR': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q627337', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q155 property:P530 ?b } UNION { resource:Q627337 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Honduras Guinea-Bissau Israel Costa Rica Pakistan Mozambique Lebanon Cuba Peru Barbados India Argentina East Timor France United Kingdom People's Republic of China Mexico Japan United States of America Poland Egypt Uruguay Italy Libya Colombia North Korea Venezuela Equatorial Guinea Paraguay Cape Verde Benin Ecuador Chile Indonesia Armenia Serbia South Africa Bolivia Ukraine Czech Republic Portugal Russia Turkey Greece Guyana Haiti Iraq Iran Bhutan Nigeria Spain South Sudan Sudan Angola
Czech Republic, Pakistan, Greece, North Korea, United States of America, Ukraine, Angola, Bolivia, Haiti and Argentina have a diplomatic relationship with Brazil or are Rui Duarte de Barros a civilian of
Czech Republic Pakistan Greece North Korea United States of America Ukraine Angola Bolivia Haiti Argentina
action filter_type
action union
action find
entity Brazil
relation diplomatic relation
action find
entity Rui Duarte de Barros
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Rui Duarte de Barros', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Brazil property:diplomatic_relation ?b } UNION { resource:Rui_Duarte_de_Barros property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q41
P47
Q15617994
USER
How many administrative territories are bordered by Greece ?
(Q41,P47,c(Q15617994))
action count
action filter_type
action find
entity Q41
relation P47
type Q15617994
['Q41', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Q41 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Greece
action count
action filter_type
action find
entity Greece
relation shares border with
type designation for an administrative territorial entity
['Greece', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Greece property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
Q219 Q222 Q221 Q43
(Q41,P47,c(Q15617994))
action count
action filter_type
action find
entity Q41
relation P47
type Q15617994
[ANSWER]
['Q41', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Q41 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Bulgaria Albania Republic of Macedonia Turkey
4
action count
action filter_type
action find
entity Greece
relation shares border with
type designation for an administrative territorial entity
['Greece', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Greece property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q101716
P17
Q15617994
USER
Which administrative territory does Valsecca belong to ?
(Q101716,P17,c(Q15617994))
action filter_type
action find
entity Q101716
relation P17
type Q15617994
['Q101716', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q101716 property:P17 ?a }
Valsecca
action filter_type
action find
entity Valsecca
relation country
type designation for an administrative territorial entity
['Valsecca', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Valsecca property:country ?a }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q101716,P17,c(Q15617994))
action filter_type
action find
entity Q101716
relation P17
type Q15617994
Valsecca belongs to [ANSWER]
['Q101716', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q101716 property:P17 ?a }
Italy
Valsecca belongs to Italy
Italy
action filter_type
action find
entity Valsecca
relation country
type designation for an administrative territorial entity
['Valsecca', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Valsecca property:country ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P172
Q502895
USER
Who have that administrative territory as his/her race ?
(c(Q502895),P172,Q38)
action filter_type
action find_reverse
entity Q38
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q38']
SELECT DISTINCT ?k WHERE { ?k property:P172 resource:Q38 . ?k rdf:type ontology:Q502895 }
Italy
action filter_type
action find_reverse
entity Italy
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Italy']
SELECT DISTINCT ?k WHERE { ?k property:ethnic_group resource:Italy . ?k rdf:type ontology:common_name }
[]
common name
Q312614 Q5096249 Q1387658
SYSTEM
Alessandro Petacchi, Chicken John, Francesco D'Macho
Q312614 Q5096249 Q1387658
(c(Q502895),P172,Q38)
action filter_type
action find_reverse
entity Q38
relation P172
type Q502895
[ANSWERS] have that administrative territory as his/her race
[{'concept': 'Q502895'}, 'P172', 'Q38']
SELECT DISTINCT ?k WHERE { ?k property:P172 resource:Q38 . ?k rdf:type ontology:Q502895 }
Alessandro Petacchi Chicken John Francesco D'Macho
Alessandro Petacchi, Chicken John and Francesco D'Macho have that administrative territory as his/her race
Alessandro Petacchi Chicken John Francesco D'Macho
action filter_type
action find_reverse
entity Italy
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Italy']
SELECT DISTINCT ?k WHERE { ?k property:ethnic_group resource:Italy . ?k rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q618779 Q2668072 Q618779
USER
Which awards are a portion of max number of awards and collections ?
(c(Q618779),P361,c(Q618779)|c(Q2668072))
action argmax
action union
action find_tuple_counts
relation P361
type Q618779
type Q618779
action find_tuple_counts
relation P361
type Q618779
type Q2668072
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q618779'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?d ) WHERE { { ?u property:P361 ?m . ?u rdf:type ontology:Q618779 . ?m rdf:type ontology:Q618779 } UNION { ?m rdf:type ontology:Q2668072 . ?u rdf:type ontology:Q618779 . ?u property:P361 ?m } } GROUP BY ?u } } . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { { ?g property:P361 ?i . ?g rdf:type ontology:Q618779 . ?i rdf:type ontology:Q618779 } UNION { ?g property:P361 ?i . ?i rdf:type ontology:Q2668072 . ?g rdf:type ontology:Q618779 } } GROUP BY ?g } . FILTER ( ?p = ?w ) }
action argmax
action union
action find_tuple_counts
relation part of
type award
type award
action find_tuple_counts
relation part of
type award
type collection
[{'concept': 'award'}, 'part of', [{'concept': 'award'}, {'concept': 'collection'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?d ) WHERE { { ?u property:part_of ?m . ?u rdf:type ontology:award . ?m rdf:type ontology:award } UNION { ?m rdf:type ontology:collection . ?u rdf:type ontology:award . ?u property:part_of ?m } } GROUP BY ?u } } . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { { ?g property:part_of ?i . ?g rdf:type ontology:award . ?i rdf:type ontology:award } UNION { ?g property:part_of ?i . ?i rdf:type ontology:collection . ?g rdf:type ontology:award } } GROUP BY ?g } . FILTER ( ?p = ?w ) }
[]
award collection award
Q936683 Q610903 Q266012
SYSTEM
Nebula Award for Best Novelette, Nebula Award for Best Short Story, Nebula Award for Best Novel
Q15463524 Q16218137 Q26079956 Q24231374 Q23061993 Q1086189 Q23059849 Q266012 Q20857709 Q16395246 Q7600545 Q5579156 Q26084288 Q267950 Q11288429 Q15271575 Q20857713 Q3405076 Q20857717 Q20857715 Q15284630 Q4120984 Q14941844 Q3405797 Q3405795 Q3405792 Q37922 Q3405790 Q23062015 Q13377517 Q15464509 Q20857721 Q26481897 Q936683 Q610903 Q23061860 Q4120948 Q15464524 Q11593374
(c(Q618779),P361,c(Q618779)|c(Q2668072))
action argmax
action union
action find_tuple_counts
relation P361
type Q618779
type Q618779
action find_tuple_counts
relation P361
type Q618779
type Q2668072
[ANSWERS] are a portion of max number of awards and collections
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q618779'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?d ) WHERE { { ?u property:P361 ?m . ?u rdf:type ontology:Q618779 . ?m rdf:type ontology:Q618779 } UNION { ?m rdf:type ontology:Q2668072 . ?u rdf:type ontology:Q618779 . ?u property:P361 ?m } } GROUP BY ?u } } . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { { ?g property:P361 ?i . ?g rdf:type ontology:Q618779 . ?i rdf:type ontology:Q618779 } UNION { ?g property:P361 ?i . ?i rdf:type ontology:Q2668072 . ?g rdf:type ontology:Q618779 } } GROUP BY ?g } . FILTER ( ?p = ?w ) }
Knight of the National Order of Quebec Seumas McNally Grand Prize Tony Award for Best Sound Design of a Play Ingeborg Bachmann Award 2016 Charles Veillon prize in the Italian language Nebula Award for Best Novella Hans Christian Andersen Award for illustration Nebula Award for Best Novel Grand Cordon of the National Order of the Cedar‎ Ridenhour Truth-Telling Prize Gullspiran Golden Ariel Tony Award for Best Sound Design of a Musical Empire Gallantry Medal Grand Cordon of the Order of the Paulownia Flowers Sport Australia Hall of Fame Grand Officer of the National Order of the Cedar Prix Médicis for foreign literature Officer of the National Order of the Cedar Commander of the National Order of the Cedar Grand Officer of the Order of Saints Maurice and Lazarus Magritte Award for Best Director Prix Médicis essai Governor General's Award for French-language children's literature Governor General's Award for French-language children's illustration Governor General's Award for English-language children's literature Nobel Prize in Literature Governor General's Award for English-language children's illustration Charles Veillon prize in the German language Knight Grand Cross with Collar of the Order of St. Olav‎ Grand Officer of the National Order of Quebec Knight of the National Order of the Cedar octave d'honneur Nebula Award for Best Novelette Nebula Award for Best Short Story Charles Veillon prize in the French language Magritte Award for Best Film Officer of the National Order of Quebec Knight of the Royal and Military Order of Saint Louis
Nebula Award for Best Novelette, Nebula Award for Best Short Story and Nebula Award for Best Novel are a portion of max number of awards and collections
Nebula Award for Best Novelette Nebula Award for Best Short Story Nebula Award for Best Novel
action argmax
action union
action find_tuple_counts
relation part of
type award
type award
action find_tuple_counts
relation part of
type award
type collection
[{'concept': 'award'}, 'part of', [{'concept': 'award'}, {'concept': 'collection'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?w ) { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?d ) WHERE { { ?u property:part_of ?m . ?u rdf:type ontology:award . ?m rdf:type ontology:award } UNION { ?m rdf:type ontology:collection . ?u rdf:type ontology:award . ?u property:part_of ?m } } GROUP BY ?u } } . { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { { ?g property:part_of ?i . ?g rdf:type ontology:award . ?i rdf:type ontology:award } UNION { ?g property:part_of ?i . ?i rdf:type ontology:collection . ?g rdf:type ontology:award } } GROUP BY ?g } . FILTER ( ?p = ?w ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6144842
P1411
Q502895
USER
Were James W. Maney nominated for those awards ?
(Q6144842,P1411,Q936683) (Q6144842,P1411,Q610903) (Q6144842,P1411,Q266012)
action is_in
entity prev_answer
action find
entity Q6144842
relation P1411
['Q6144842', 'P1411', 'Q936683'] ['Q6144842', 'P1411', 'Q610903'] ['Q6144842', 'P1411', 'Q266012']
ASK WHERE { resource:Q6144842 property:P1411 ?q . VALUES ( ?q ) { ( resource:Q15463524 ) ( resource:Q16218137 ) ( resource:Q26079956 ) } }
James W. Maney
action is_in
entity prev_answer
action find
entity James W. Maney
relation nominated for
['James W. Maney', 'nominated for', 'Nebula Award for Best Novelette'] ['James W. Maney', 'nominated for', 'Nebula Award for Best Short Story'] ['James W. Maney', 'nominated for', 'Nebula Award for Best Novel']
ASK WHERE { resource:James_W._Maney property:nominated_for ?q . VALUES ( ?q ) { ( resource:Knight_of_the_National_Order_of_Quebec ) ( resource:Seumas_McNally_Grand_Prize ) ( resource:Tony_Award_for_Best_Sound_Design_of_a_Play ) } }
[]
common name
SYSTEM
NO
(Q6144842,P1411,Q936683) (Q6144842,P1411,Q610903) (Q6144842,P1411,Q266012)
action is_in
entity prev_answer
action find
entity Q6144842
relation P1411
[ANSWER]
['Q6144842', 'P1411', 'Q936683'] ['Q6144842', 'P1411', 'Q610903'] ['Q6144842', 'P1411', 'Q266012']
ASK WHERE { resource:Q6144842 property:P1411 ?q . VALUES ( ?q ) { ( resource:Q15463524 ) ( resource:Q16218137 ) ( resource:Q26079956 ) } }
No
action is_in
entity prev_answer
action find
entity James W. Maney
relation nominated for
['James W. Maney', 'nominated for', 'Nebula Award for Best Novelette'] ['James W. Maney', 'nominated for', 'Nebula Award for Best Short Story'] ['James W. Maney', 'nominated for', 'Nebula Award for Best Novel']
ASK WHERE { resource:James_W._Maney property:nominated_for ?q . VALUES ( ?q ) { ( resource:Knight_of_the_National_Order_of_Quebec ) ( resource:Seumas_McNally_Grand_Prize ) ( resource:Tony_Award_for_Best_Sound_Design_of_a_Play ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q225
P530
Q15617994
USER
Does Bosnia and Herzegovina have diplomatic relationships with Italy ?
(Q38,P530,Q225)
action is_in
entity Q225
action find
entity Q38
relation P530
['Q38', 'P530', 'Q225']
ASK WHERE { resource:Q38 property:P530 resource:Q225 }
Italy Bosnia and Herzegovina
action is_in
entity Bosnia and Herzegovina
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Bosnia and Herzegovina']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Bosnia_and_Herzegovina }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q225)
action is_in
entity Q225
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q225']
ASK WHERE { resource:Q38 property:P530 resource:Q225 }
Yes
action is_in
entity Bosnia and Herzegovina
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Bosnia and Herzegovina']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Bosnia_and_Herzegovina }
[]