Simple Question (Direct)
Simple Question
Q644634
P136
Q1792379
USER
What can be considered as category for The Little Rascals ?
(Q644634,P136,c(Q1792379))
action filter_type
action find
entity Q644634
relation P136
type Q1792379
['Q644634', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?l WHERE { resource:Q644634 property:P136 ?l . ?l rdf:type ontology:Q1792379 }
The Little Rascals
action filter_type
action find
entity The Little Rascals
relation genre
type art genre
['The Little Rascals', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?l WHERE { resource:The_Little_Rascals property:genre ?l . ?l rdf:type ontology:art_genre }
[]
art genre
Q2143665
SYSTEM
children's film
Q2143665
(Q644634,P136,c(Q1792379))
action filter_type
action find
entity Q644634
relation P136
type Q1792379
The [ANSWER] can be considered as category for The Little Rascals
['Q644634', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?l WHERE { resource:Q644634 property:P136 ?l . ?l rdf:type ontology:Q1792379 }
children's film
The children's film can be considered as category for The Little Rascals
children's film
action filter_type
action find
entity The Little Rascals
relation genre
type art genre
['The Little Rascals', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?l WHERE { resource:The_Little_Rascals property:genre ?l . ?l rdf:type ontology:art_genre }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q869955 Q2143665
P136
Q838948
USER
Which works of art have children's film and fictional crossover as their category ?
AND((c(Q838948),P136,Q2143665), (c(Q838948),P136,Q869955))
action filter_type
action intersection
action find_reverse
entity Q2143665
relation P136
action find_reverse
entity Q869955
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P136', 'Q2143665'], [{'concept': 'Q838948'}, 'P136', 'Q869955']]}
SELECT DISTINCT ?k WHERE { ?k property:P136 resource:Q2143665 . ?k property:P136 resource:Q869955 . ?k rdf:type ontology:Q838948 }
fictional crossover children's film
action filter_type
action intersection
action find_reverse
entity children's film
relation genre
action find_reverse
entity fictional crossover
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'genre', "children's film"], [{'concept': 'work of art'}, 'genre', 'fictional crossover']]}
SELECT DISTINCT ?k WHERE { ?k property:genre resource:children's_film . ?k property:genre resource:fictional_crossover . ?k rdf:type ontology:work_of_art }
[]
work of art
Q1635070 Q1057720 Q2608065 Q1862797 Q19839019 Q2184361 Q15884400 Q207659 Q4460119
SYSTEM
Thomas and the Magic Railroad, Mega Monster Battle: Ultra Galaxy, The Lego Movie, The Monster Squad, Tom and Jerry: Spy Quest, Yu-Gi-Oh!: Bonds Beyond Time, Tom and Jerry's Giant Adventure, Space Jam, Tom and Jerry and the Wizard of Oz
Q1635070 Q1057720 Q2608065 Q1862797 Q19839019 Q2184361 Q15884400 Q207659 Q4460119
AND((c(Q838948),P136,Q2143665), (c(Q838948),P136,Q869955))
action filter_type
action intersection
action find_reverse
entity Q2143665
relation P136
action find_reverse
entity Q869955
relation P136
type Q838948
[ANSWERS] have children's film and fictional crossover as their category
{'AND': [[{'concept': 'Q838948'}, 'P136', 'Q2143665'], [{'concept': 'Q838948'}, 'P136', 'Q869955']]}
SELECT DISTINCT ?k WHERE { ?k property:P136 resource:Q2143665 . ?k property:P136 resource:Q869955 . ?k rdf:type ontology:Q838948 }
Thomas and the Magic Railroad Mega Monster Battle: Ultra Galaxy The Lego Movie The Monster Squad Tom and Jerry: Spy Quest Yu-Gi-Oh!: Bonds Beyond Time Tom and Jerry's Giant Adventure Space Jam Tom and Jerry and the Wizard of Oz
Thomas and the Magic Railroad, Mega Monster Battle: Ultra Galaxy, The Lego Movie, The Monster Squad, Tom and Jerry: Spy Quest, Yu-Gi-Oh!: Bonds Beyond Time, Tom and Jerry's Giant Adventure, Space Jam and Tom and Jerry and the Wizard of Oz have children's film and fictional crossover as their category
Thomas and the Magic Railroad Mega Monster Battle: Ultra Galaxy The Lego Movie The Monster Squad Tom and Jerry: Spy Quest Yu-Gi-Oh!: Bonds Beyond Time Tom and Jerry's Giant Adventure Space Jam Tom and Jerry and the Wizard of Oz
action filter_type
action intersection
action find_reverse
entity children's film
relation genre
action find_reverse
entity fictional crossover
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'genre', "children's film"], [{'concept': 'work of art'}, 'genre', 'fictional crossover']]}
SELECT DISTINCT ?k WHERE { ?k property:genre resource:children's_film . ?k property:genre resource:fictional_crossover . ?k rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2184361
P495
Q15617994
USER
What is the country of origin of that work of art ?
(Q2184361,P495,c(Q15617994))
action filter_type
action find
entity Q2184361
relation P495
type Q15617994
['Q2184361', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q2184361 property:P495 ?p . ?p rdf:type ontology:Q15617994 }
Yu-Gi-Oh!: Bonds Beyond Time
action filter_type
action find
entity Yu-Gi-Oh!: Bonds Beyond Time
relation country of origin
type designation for an administrative territorial entity
['Yu-Gi-Oh!: Bonds Beyond Time', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Yu-Gi-Oh!:_Bonds_Beyond_Time property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q4460119
SYSTEM
Did you mean Tom and Jerry and the Wizard of Oz ?
Q1635070 Q1057720 Q2608065 Q1862797 Q19839019 Q2184361 Q15884400 Q207659 Q4460119
(Q1635070,P495,c(Q15617994)) (Q1057720,P495,c(Q15617994)) (Q2608065,P495,c(Q15617994)) (Q1862797,P495,c(Q15617994)) (Q19839019,P495,c(Q15617994)) (Q2184361,P495,c(Q15617994)) (Q15884400,P495,c(Q15617994)) (Q207659,P495,c(Q15617994)) (Q4460119,P495,c(Q15617994))
[ANSWER]
['Q1635070', 'P495', {'concept': 'Q15617994'}] ['Q1057720', 'P495', {'concept': 'Q15617994'}] ['Q2608065', 'P495', {'concept': 'Q15617994'}] ['Q1862797', 'P495', {'concept': 'Q15617994'}] ['Q19839019', 'P495', {'concept': 'Q15617994'}] ['Q2184361', 'P495', {'concept': 'Q15617994'}] ['Q15884400', 'P495', {'concept': 'Q15617994'}] ['Q207659', 'P495', {'concept': 'Q15617994'}] ['Q4460119', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q2184361 property:P495 ?p . ?p rdf:type ontology:Q15617994 }
Thomas and the Magic Railroad Mega Monster Battle: Ultra Galaxy The Lego Movie The Monster Squad Tom and Jerry: Spy Quest Yu-Gi-Oh!: Bonds Beyond Time Tom and Jerry's Giant Adventure Space Jam Tom and Jerry and the Wizard of Oz
Did you mean Tom and Jerry and the Wizard of Oz ?
Tom and Jerry and the Wizard of Oz
['Thomas and the Magic Railroad', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Mega Monster Battle: Ultra Galaxy', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Lego Movie', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Monster Squad', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Tom and Jerry: Spy Quest', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Yu-Gi-Oh!: Bonds Beyond Time', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ["Tom and Jerry's Giant Adventure", 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Space Jam', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Tom and Jerry and the Wizard of Oz', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Yu-Gi-Oh!:_Bonds_Beyond_Time property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Yu-Gi-Oh!: Bonds Beyond Time. Could you tell me the answer for that?
(Q2184361,P495,c(Q15617994))
Q2184361
['Q2184361', 'P495', {'concept': 'Q15617994'}]
['Yu-Gi-Oh!: Bonds Beyond Time', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q17
SYSTEM
Japan
Q17
(Q2184361,P495,c(Q15617994))
action filter_type
action find
entity Q2184361
relation P495
type Q15617994
The country of origin of that work of art is from [ANSWER]
['Q2184361', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q2184361 property:P495 ?p . ?p rdf:type ontology:Q15617994 }
Japan
The country of origin of that work of art is from Japan
Japan
action filter_type
action find
entity Yu-Gi-Oh!: Bonds Beyond Time
relation country of origin
type designation for an administrative territorial entity
['Yu-Gi-Oh!: Bonds Beyond Time', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Yu-Gi-Oh!:_Bonds_Beyond_Time property:country_of_origin ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q17 Q5855222
P27
Q502895
USER
Is Nicolás Facundo Quiroga a citizen of that administrative territory ?
(Q5855222,P27,Q17)
action is_in
entity Q5855222
action find
entity Q17
relation P27
['Q5855222', 'P27', 'Q17']
ASK WHERE { resource:Q17 property:P27 resource:Q5855222 }
Japan Nicolás Facundo Quiroga
action is_in
entity Nicolás Facundo Quiroga
action find
entity Japan
relation country of citizenship
['Nicolás Facundo Quiroga', 'country of citizenship', 'Japan']
ASK WHERE { resource:Japan property:country_of_citizenship resource:Nicolás_Facundo_Quiroga }
[]
common name
SYSTEM
NO
(Q5855222,P27,Q17)
action is_in
entity Q5855222
action find
entity Q17
relation P27
[ANSWER]
['Q5855222', 'P27', 'Q17']
ASK WHERE { resource:Q17 property:P27 resource:Q5855222 }
No
action is_in
entity Nicolás Facundo Quiroga
action find
entity Japan
relation country of citizenship
['Nicolás Facundo Quiroga', 'country of citizenship', 'Japan']
ASK WHERE { resource:Japan property:country_of_citizenship resource:Nicolás_Facundo_Quiroga }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q4174437 Q17
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Japan and are Saint Catherine Church, Petrozavodsk present in ?
AND((Q17,P530,c(Q15617994)), (Q4174437,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17
relation P530
action find
entity Q4174437
relation P17
type Q15617994
{'AND': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q4174437', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?p . resource:Q4174437 property:P17 ?p }
Saint Catherine Church, Petrozavodsk Japan
action filter_type
action intersection
action find
entity Japan
relation diplomatic relation
action find
entity Saint Catherine Church, Petrozavodsk
relation country
type designation for an administrative territorial entity
{'AND': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Saint Catherine Church, Petrozavodsk', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?p . resource:Saint_Catherine_Church,_Petrozavodsk property:country ?p }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
AND((Q17,P530,c(Q15617994)), (Q4174437,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17
relation P530
action find
entity Q4174437
relation P17
type Q15617994
[ANSWER] have diplomatic relationships with Japan and are Saint Catherine Church, Petrozavodsk present in
{'AND': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q4174437', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?p . resource:Q4174437 property:P17 ?p }
Russia
Russia have diplomatic relationships with Japan and are Saint Catherine Church, Petrozavodsk present in
Russia
action filter_type
action intersection
action find
entity Japan
relation diplomatic relation
action find
entity Saint Catherine Church, Petrozavodsk
relation country
type designation for an administrative territorial entity
{'AND': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Saint Catherine Church, Petrozavodsk', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?p . resource:Saint_Catherine_Church,_Petrozavodsk property:country ?p }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q717 Q19839019
P47 P495
Q15617994
USER
Which administrative territories did Tom and Jerry: Spy Quest originate and are adjacent to Venezuela ?
AND((Q19839019,P495,c(Q15617994)), (Q717,P47,c(Q15617994)))
action filter_type
action intersection
action find
entity Q19839019
relation P495
action find
entity Q717
relation P47
type Q15617994
{'AND': [['Q19839019', 'P495', {'concept': 'Q15617994'}], ['Q717', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { resource:Q19839019 property:P495 ?h . resource:Q717 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
Venezuela Tom and Jerry: Spy Quest
action filter_type
action intersection
action find
entity Tom and Jerry: Spy Quest
relation country of origin
action find
entity Venezuela
relation shares border with
type designation for an administrative territorial entity
{'AND': [['Tom and Jerry: Spy Quest', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Venezuela', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Tom_and_Jerry:_Spy_Quest property:country_of_origin ?h . resource:Venezuela property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q19839019,P495,c(Q15617994)), (Q717,P47,c(Q15617994)))
action filter_type
action intersection
action find
entity Q19839019
relation P495
action find
entity Q717
relation P47
type Q15617994
Tom and Jerry : Spy Quest originated from [ANSWER] and are adjacent to Venezuela
{'AND': [['Q19839019', 'P495', {'concept': 'Q15617994'}], ['Q717', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { resource:Q19839019 property:P495 ?h . resource:Q717 property:P47 ?h . ?h rdf:type ontology:Q15617994 }
United States of America
Tom and Jerry : Spy Quest originated from United States of America and are adjacent to Venezuela
United States of America
action filter_type
action intersection
action find
entity Tom and Jerry: Spy Quest
relation country of origin
action find
entity Venezuela
relation shares border with
type designation for an administrative territorial entity
{'AND': [['Tom and Jerry: Spy Quest', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Venezuela', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { resource:Tom_and_Jerry:_Spy_Quest property:country_of_origin ?h . resource:Venezuela property:shares_border_with ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q17 Q801
P530
Q15617994
USER
Does that administrative territory have diplomatic relations with Japan and Israel ?
(Q30,P530,Q17) (Q30,P530,Q801)
action is_in
entity Q30
action intersection
action find_reverse
entity Q17
relation P530
action find_reverse
entity Q801
relation P530
['Q30', 'P530', 'Q17'] ['Q30', 'P530', 'Q801']
ASK WHERE { resource:Q30 property:P530 resource:Q17 . resource:Q30 property:P530 resource:Q801 }
United States of America Japan Israel
action is_in
entity United States of America
action intersection
action find_reverse
entity Japan
relation diplomatic relation
action find_reverse
entity Israel
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Japan'] ['United States of America', 'diplomatic relation', 'Israel']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Japan . resource:United_States_of_America property:diplomatic_relation resource:Israel }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P530,Q17) (Q30,P530,Q801)
action is_in
entity Q30
action intersection
action find_reverse
entity Q17
relation P530
action find_reverse
entity Q801
relation P530
[ANSWER]
['Q30', 'P530', 'Q17'] ['Q30', 'P530', 'Q801']
ASK WHERE { resource:Q30 property:P530 resource:Q17 . resource:Q30 property:P530 resource:Q801 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity Japan
relation diplomatic relation
action find_reverse
entity Israel
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Japan'] ['United States of America', 'diplomatic relation', 'Israel']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Japan . resource:United_States_of_America property:diplomatic_relation resource:Israel }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q14660 Q11204
USER
Which administrative territories apply to jurisdiction of atmost 3 flags or legislatures ?
(c(Q14660)|c(Q11204),P1001,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
value 3
[[{'concept': 'Q14660'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) ?q WHERE { { ?n property:P1001 ?q . ?q rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q11204 } UNION { ?n property:P1001 ?q . ?q rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q14660 } } GROUP BY ?q } . FILTER ( ?p <= 3 ) }
action atmost
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
value 3
[[{'concept': 'flag'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) ?q WHERE { { ?n property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:legislature } UNION { ?n property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:flag } } GROUP BY ?q } . FILTER ( ?p <= 3 ) }
[]
designation for an administrative territorial entity flag legislature
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q701 Q702 Q804 Q705 Q801 Q707 Q709 Q811 Q706679 Q805 Q2765 Q419 Q668 Q163012 Q414 Q142 Q22273061 Q55 Q2871 Q145 Q262 Q148 Q189 Q784 Q31 Q265 Q24764 Q2742 Q842 Q37 Q398 Q874 Q712 Q711 Q710 Q717 Q837 Q213 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q403 Q657 Q258 Q6465 Q1979 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q7688 Q739 Q3097 Q826 Q158893 Q2942 Q822 Q241 Q1965 Q817 Q11340 Q244 Q11343 Q1142326 Q1974 Q1019 Q2899 Q2758 Q1952 Q813 Q218 Q33 Q921 Q4712 Q30 Q924 Q36 Q34 Q928 Q155019 Q39 Q38 Q3389 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q163966 Q769680 Q3068 Q730 Q1013 Q11323 Q236 Q230 Q1948 Q232 Q233 Q1093 Q238 Q119284 Q20 Q1045 Q3403547 Q1042 Q1041 Q27 Q28 Q2667658 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q843 Q2007 Q184 Q1101 Q1029 Q2003 Q736 Q786 Q1904 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q1050 Q17 Q1989 Q2838 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q694 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q22274534 Q11337 Q211 Q11331 Q217 Q214 Q215 Q12642 Q219 Q154547 Q683 Q242 Q1216 Q12753 Q912 Q2805 Q917 Q916 Q2107 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q1438 Q34020 Q2380910 Q686 Q836 Q760 Q29 Q574 Q11301 Q2904 Q158095 Q1044 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q776 Q810 Q770 Q773 Q772 Q1014 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q678 Q129003 Q800 Q1039 Q672 Q176 Q33788 Q929 Q1267638 Q298 Q329609 Q863 Q2938 Q2023 Q869 Q1231 Q953 Q1237
(c(Q14660)|c(Q11204),P1001,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q14660
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
value 3
[ANSWERS] apply to jurisdiction of atmost 3 flags or legislatures
[[{'concept': 'Q14660'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) ?q WHERE { { ?n property:P1001 ?q . ?q rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q11204 } UNION { ?n property:P1001 ?q . ?q rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q14660 } } GROUP BY ?q } . FILTER ( ?p <= 3 ) }
North Holland Federated States of Micronesia Panama Zeeland Israel Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Peru India Pankow Argentina France Duchy of Nemours Netherlands Hagen United Kingdom Algeria People's Republic of China Iceland Dominica Belgium Uzbekistan municipality of the Philippines Münster Oman Lithuania Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Nepal Czech Republic Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Serbia Chad South Africa department of France Prince Edward Island Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam raion Colombia Remscheid Maldives Friedrichshain-Kreuzberg Solingen Lebanon Cuba New Brunswick Kuwait Sprockhövel Barbados Wetter (Ruhr) Seine British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Nova Scotia Kyrgyzstan Romania Finland Brunei Duchy of Burgundy United States of America Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Italy Finistère Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Mitte Bornholm Loire-Atlantique Suriname Lesotho Breckerfeld Montenegro Georgia Manitoba Kazakhstan Malta Limburg San Marino Marzahn-Hellersdorf Norway Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Ireland Hungary Shushary, Saint Petersburg Sudan Mauritania Mauritius Honduras Malawi Yukon Pakistan Northwest Territories Belarus North Brabant Mozambique Newfoundland and Labrador Ecuador Dominican Republic Ontario Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Swaziland Japan Saskatchewan Oberhausen 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 Duchy of Elbeuf Herdecke Latvia Gevelsberg Republic of Moldova Slovakia Slovenia Morbihan Bulgaria duchy Samoa Belize Piedmont Seine-et-Marne Mali Krefeld Bhutan Angola Wuppertal Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Côte d'Ivoire Republic of the Congo Comoros Campania Niue Duchy of Zaslawye Vanuatu Myanmar Saint Lucia Spain East Timor Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Utrecht Jordan Friesland Overijssel Drenthe Liberia Libya Spandau Cape Verde Veneto Togo Roccarainola Ille-et-Vilaine Duchy of Guise Tonga French Southern and Antarctic Lands Costa Rica Sao Tomé and Príncipe Tuvalu Quebec New Caledonia Central African Republic Beloostrov Chile Lichtenberg Tajikistan Leverkusen Nunavut Thailand Kosovo Region Zambia Trentino-South Tyrol
Italy, Brazil and United States of America apply to jurisdiction of atmost 3 flags or legislatures
Italy Brazil United States of America
action atmost
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
value 3
[[{'concept': 'flag'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) ?q WHERE { { ?n property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:legislature } UNION { ?n property:applies_to_jurisdiction ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:flag } } GROUP BY ?q } . FILTER ( ?p <= 3 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q593948
P530
Q1048835
USER
Do Umuarama have ambassadorial relations with those administrative territories ?
(Q593948,P530,Q38) (Q593948,P530,Q155) (Q593948,P530,Q30)
action is_in
entity prev_answer
action find
entity Q593948
relation P530
['Q593948', 'P530', 'Q38'] ['Q593948', 'P530', 'Q155'] ['Q593948', 'P530', 'Q30']
ASK WHERE { resource:Q593948 property:P530 ?q . VALUES ( ?q ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } }
Umuarama
action is_in
entity prev_answer
action find
entity Umuarama
relation diplomatic relation
['Umuarama', 'diplomatic relation', 'Italy'] ['Umuarama', 'diplomatic relation', 'Brazil'] ['Umuarama', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Umuarama property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } }
[]
political territorial entity
SYSTEM
NO
(Q593948,P530,Q38) (Q593948,P530,Q155) (Q593948,P530,Q30)
action is_in
entity prev_answer
action find
entity Q593948
relation P530
[ANSWER]
['Q593948', 'P530', 'Q38'] ['Q593948', 'P530', 'Q155'] ['Q593948', 'P530', 'Q30']
ASK WHERE { resource:Q593948 property:P530 ?q . VALUES ( ?q ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } }
No
action is_in
entity prev_answer
action find
entity Umuarama
relation diplomatic relation
['Umuarama', 'diplomatic relation', 'Italy'] ['Umuarama', 'diplomatic relation', 'Brazil'] ['Umuarama', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Umuarama property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1057720 Q11360068 Q2565019
P161
Q502895
USER
Does Saki Kamiryō and Hiroya Ishimaru star in Mega Monster Battle: Ultra Galaxy ?
(Q1057720,P161,Q11360068) (Q1057720,P161,Q2565019)
action is_in
entity Q1057720
action intersection
action find_reverse
entity Q11360068
relation P161
action find_reverse
entity Q2565019
relation P161
['Q1057720', 'P161', 'Q11360068'] ['Q1057720', 'P161', 'Q2565019']
ASK WHERE { resource:Q1057720 property:P161 resource:Q11360068 . resource:Q1057720 property:P161 resource:Q2565019 }
Mega Monster Battle: Ultra Galaxy Saki Kamiryō Hiroya Ishimaru
action is_in
entity Mega Monster Battle: Ultra Galaxy
action intersection
action find_reverse
entity Saki Kamiryō
relation cast member
action find_reverse
entity Hiroya Ishimaru
relation cast member
['Mega Monster Battle: Ultra Galaxy', 'cast member', 'Saki Kamiryō'] ['Mega Monster Battle: Ultra Galaxy', 'cast member', 'Hiroya Ishimaru']
ASK WHERE { resource:Mega_Monster_Battle:_Ultra_Galaxy property:cast_member resource:Saki_Kamiryō . resource:Mega_Monster_Battle:_Ultra_Galaxy property:cast_member resource:Hiroya_Ishimaru }
[]
common name
SYSTEM
YES
(Q1057720,P161,Q11360068) (Q1057720,P161,Q2565019)
action is_in
entity Q1057720
action intersection
action find_reverse
entity Q11360068
relation P161
action find_reverse
entity Q2565019
relation P161
[ANSWER]
['Q1057720', 'P161', 'Q11360068'] ['Q1057720', 'P161', 'Q2565019']
ASK WHERE { resource:Q1057720 property:P161 resource:Q11360068 . resource:Q1057720 property:P161 resource:Q2565019 }
Yes
action is_in
entity Mega Monster Battle: Ultra Galaxy
action intersection
action find_reverse
entity Saki Kamiryō
relation cast member
action find_reverse
entity Hiroya Ishimaru
relation cast member
['Mega Monster Battle: Ultra Galaxy', 'cast member', 'Saki Kamiryō'] ['Mega Monster Battle: Ultra Galaxy', 'cast member', 'Hiroya Ishimaru']
ASK WHERE { resource:Mega_Monster_Battle:_Ultra_Galaxy property:cast_member resource:Saki_Kamiryō . resource:Mega_Monster_Battle:_Ultra_Galaxy property:cast_member resource:Hiroya_Ishimaru }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q20202426 Q2608065
P27 P495
Q1048835
USER
Which political territories did The Lego Movie originate and are not the countries of citizenship of Catharina Collet ?
AND((Q2608065,P495,c(Q1048835)), NOT((Q20202426,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q2608065
relation P495
action find
entity Q20202426
relation P27
type Q1048835
{'AND': [['Q2608065', 'P495', {'concept': 'Q1048835'}], {'NOT': [['Q20202426', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?a WHERE { MINUS { resource:Q20202426 property:P27 ?a } . resource:Q2608065 property:P495 ?a . ?a rdf:type ontology:Q1048835 }
Catharina Collet The Lego Movie
action filter_type
action difference
action find
entity The Lego Movie
relation country of origin
action find
entity Catharina Collet
relation country of citizenship
type political territorial entity
{'AND': [['The Lego Movie', 'country of origin', {'concept': 'political territorial entity'}], {'NOT': [['Catharina Collet', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?a WHERE { MINUS { resource:Catharina_Collet property:country_of_citizenship ?a } . resource:The_Lego_Movie property:country_of_origin ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q2608065,P495,c(Q1048835)), NOT((Q20202426,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q2608065
relation P495
action find
entity Q20202426
relation P27
type Q1048835
The Lego Movie originated in [ANSWER] and are not the countries of citizenship of Catharina Collet
{'AND': [['Q2608065', 'P495', {'concept': 'Q1048835'}], {'NOT': [['Q20202426', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?a WHERE { MINUS { resource:Q20202426 property:P27 ?a } . resource:Q2608065 property:P495 ?a . ?a rdf:type ontology:Q1048835 }
Australia
The Lego Movie originated in Australia and are not the countries of citizenship of Catharina Collet
Australia
action filter_type
action difference
action find
entity The Lego Movie
relation country of origin
action find
entity Catharina Collet
relation country of citizenship
type political territorial entity
{'AND': [['The Lego Movie', 'country of origin', {'concept': 'political territorial entity'}], {'NOT': [['Catharina Collet', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?a WHERE { MINUS { resource:Catharina_Collet property:country_of_citizenship ?a } . resource:The_Lego_Movie property:country_of_origin ?a . ?a rdf:type ontology:political_territorial_entity }
[]