Simple Question (Direct)
Simple Question
Q3370506
P607
Q198
USER
Which battle did Paul Arnault take part in ?
(Q3370506,P607,c(Q198))
action filter_type
action find
entity Q3370506
relation P607
type Q198
['Q3370506', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?i WHERE { resource:Q3370506 property:P607 ?i . ?i rdf:type ontology:Q198 }
Paul Arnault
action filter_type
action find
entity Paul Arnault
relation conflict
type war
['Paul Arnault', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?i WHERE { resource:Paul_Arnault property:conflict ?i . ?i rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q3370506,P607,c(Q198))
action filter_type
action find
entity Q3370506
relation P607
type Q198
Paul Arnault took part in [ANSWER]
['Q3370506', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?i WHERE { resource:Q3370506 property:P607 ?i . ?i rdf:type ontology:Q198 }
World War II
Paul Arnault took part in World War II
World War II
action filter_type
action find
entity Paul Arnault
relation conflict
type war
['Paul Arnault', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?i WHERE { resource:Paul_Arnault property:conflict ?i . ?i rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q362
P361
Q1190554
USER
Which events are a portion of that war ?
(c(Q1190554),P361,Q362)
action filter_type
action find_reverse
entity Q362
relation P361
type Q1190554
[{'concept': 'Q1190554'}, 'P361', 'Q362']
SELECT DISTINCT ?y WHERE { ?y property:P361 resource:Q362 . ?y rdf:type ontology:Q1190554 }
World War II
action filter_type
action find_reverse
entity World War II
relation part of
type event
[{'concept': 'event'}, 'part of', 'World War II']
SELECT DISTINCT ?y WHERE { ?y property:part_of resource:World_War_II . ?y rdf:type ontology:event }
[]
event
Q13435464 Q38789 Q327052
SYSTEM
Invasion of Luxembourg, Battle of Stalingrad, Battle of Aachen
Q2890796 Q696839 Q15894754 Q704550 Q541997 Q716750 Q4871491 Q275019 Q22796 Q308999 Q245890 Q1475243 Q2026043 Q327061 Q245898 Q1970470 Q4870705 Q1061048 Q2032618 Q2426368 Q180182 Q2165486 Q1332237 Q1527360 Q702579 Q4871165 Q714777 Q2888837 Q4859251 Q694416 Q1861428 Q2890307 Q130861 Q1764599 Q1723307 Q2890419 Q2889419 Q16497164 Q703482 Q704785 Q697022 Q15197283 Q2363492 Q2890968 Q217145 Q2748375 Q22082154 Q173034 Q327099 Q276852 Q151290 Q14303815 Q1809645 Q617922 Q1753578 Q2311064 Q717004 Q509417 Q4870681 Q980853 Q1052651 Q13435464 Q700572 Q2000885 Q3636512 Q696479 Q2890620 Q4871309 Q696931 Q697059 Q301300 Q1280169 Q2308186 Q696900 Q5137071 Q2000871 Q2305266 Q16497143 Q2889272 Q576774 Q154182 Q700569 Q316843 Q339159 Q208529 Q700710 Q696462 Q543255 Q2890351 Q296754 Q1410792 Q714979 Q516202 Q1361210 Q2065459 Q4872082 Q1538855 Q549305 Q697172 Q2889367 Q714265 Q653470 Q700705 Q2890604 Q153316 Q707238 Q2237269 Q1497996 Q2890462 Q609030 Q327052 Q245746 Q2887891 Q4870527 Q4872340 Q700032 Q703962 Q23747405 Q176915 Q162362 Q4871136 Q543075 Q383614 Q162287 Q713006 Q162284 Q4090297 Q1983926 Q1891631 Q2237217 Q151018 Q246553 Q327035 Q2234138 Q13622762 Q38789 Q836128 Q4871905 Q1970005 Q1536686 Q708217 Q708213 Q162357 Q282438 Q714200 Q635150 Q1993443 Q1814334 Q541506 Q15816796 Q700530 Q504347 Q696829 Q7879625 Q1440764 Q1141380 Q610000 Q4870811 Q3883953 Q767510 Q1564029 Q192660 Q11636595 Q671528 Q4870587 Q1581815 Q702142 Q2889635 Q2649081 Q155103 Q2597597 Q4871210
(c(Q1190554),P361,Q362)
action filter_type
action find_reverse
entity Q362
relation P361
type Q1190554
[ANSWERS] are a portion of that war
[{'concept': 'Q1190554'}, 'P361', 'Q362']
SELECT DISTINCT ?y WHERE { ?y property:P361 resource:Q362 . ?y rdf:type ontology:Q1190554 }
Maquis du Mont Mouchet Battle of Arras Battle of Centuripe Battle of Hel Battle of Alam el Halfa Battle of Maastricht Battle of Krasnobród Battle of Smolensk Planned destruction of Warsaw Battle of Leyte Gulf Battle of Heilbronn Battle of Cape Esperance Operation Desecrate One Battle of Białystok–Minsk Battle of Frankfurt New Georgia Campaign Battle of Chambois Battle of Midtskogen Battle of Hannut Battle of Bardia Battle of Iwo Jima Battle of Empress Augusta Bay Battle of Overloon Battle of Leuven Battle of Ko Chang Battle of Gurun Allied invasion of Italy Battle of Greece Battle of Romania Battle of Brześć Litewski Battle of the Heligoland Bight Land Battle of Vella Lavella Battle of Kursk Action off Lofoten Battle of Metz Battle of Yenangyaung Battle of Muar Battle of Montese Battle of Bataan Bougainville Campaign Battle of the Scheldt Battle of Kesternich Battle of El Guettar Battle for Australia Guadalcanal Campaign Black Friday Battle of Authion Battle of Midway Battle of Kasserine Pass Battle of Slivice Battle of Moscow Battle for Castle Itter Battle of Szack Battle of Wytyczno Battle of the Bismarck Sea Convoys HX 229/SC 122 Battle of Leyte Battle of the Korsun–Cherkassy Pocket Battle of Ceber Battle of Gela Battle of Madagascar Invasion of Luxembourg Battle of Attu Second naval battle of Narvik Battle of Lwów Battle of the Eastern Solomons Battle of Verrières Ridge Battle of Jarosław Battle of Manila Battle of Hong Kong Battle of Java Battle of Prachuab Khirikhan German invasion of Denmark Battle of Guam Clydebank Blitz First naval battle of Narvik Soviet invasion of Poland Battle of Castelnuovo Battle of Marseille Battle of Carentan Battle of Berlin Sinking of Prince of Wales and Repulse Battle of Bautzen Battle of Borneo Battle of Dunkirk Battle of Villers-Bocage Philippines Campaign Battle of Taranto Battle of Vinjesvingen Battle of Singapore Second Battle of Amba Alagi Battle of the Afsluitdijk Battle of Cherbourg Battle of Christmas Island Battle of Tehumardi Battle of Porkuni Battle of Angaur Battle of Pęcice Courland Pocket Battle of Montcornet Battle of Gembloux Battle of the Caucasus Battle of Saipan Battle of Walcheren Causeway Battle of Crete Battle of Imphal Battle of Abbeville Battle of Tulagi and Gavutu–Tanambogo Timeline of the Battle of the Atlantic Battle of Peleliu Battle of Aachen Battle of Hamburg Battle of Arracourt Battle of Borowa Góra Battle of Sedjenane Battle of Savo Island Battle of Luzon Battle of Carei Battle of Tinian Balkans Campaign Battle of Graveney Marsh Battle of Dutch Harbor Battle of Kohima Battle of Hürtgen Forest Battle of Corregidor Battle of Kiev (1941) Battle of Wilno Battle of Sidi Bou Zid Battle for The Hague Battle of Saint-Lô Battle of the Bulge Battle of Nuremberg Battle of Gazala Battle of Groningen Liberation of Martigues Battle of Stalingrad Battle of Bir Hakeim Battle of Noemfoor Battle of Keren Battle of Sunda Strait Battles of Narvik Battle of Brody Battle of Smolensk Battle of Halbe Battle of Le Mesnil-Patry Battle of Calabria Battle of the St. Lawrence Battle of Tomaszów Lubelski Battle of Prokhorovka Meximieux battle Battle of Cape St. George Battle of the Philippine Sea Battle of Dakar Battle of the Seelow Heights Battle of Timor Battle of Wake Island Battle of the Grebbeberg Battle of Crucifix Hill Operation Donnerkeil Battle of Nancy Battle of Livno Battle of Okinawa Battle of Boulogne (1940) Battle of Königsberg Battle of Bukit Timah Battle of the Lys Battle of Vella Gulf Battle of Poljana Battle of the Netherlands Siege of Budapest Battle of Krasny Bor Battle of Heraklion
Invasion of Luxembourg, Battle of Stalingrad and Battle of Aachen are a portion of that war
Invasion of Luxembourg Battle of Stalingrad Battle of Aachen
action filter_type
action find_reverse
entity World War II
relation part of
type event
[{'concept': 'event'}, 'part of', 'World War II']
SELECT DISTINCT ?y WHERE { ?y property:part_of resource:World_War_II . ?y rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q362
P710
Q15617994
USER
Which artists participated in World War II ?
(Q362,P710,c(Q15617994))
action filter_type
action find
entity Q362
relation P710
type Q15617994
['Q362', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q362 property:P710 ?y . ?y rdf:type ontology:Q15617994 }
World War II
action filter_type
action find
entity World War II
relation participant
type designation for an administrative territorial entity
['World War II', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:World_War_II property:participant ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q30 Q142
SYSTEM
Italy, United States of America, France
Q142 Q17 Q30 Q38 Q145
(Q362,P710,c(Q15617994))
action filter_type
action find
entity Q362
relation P710
type Q15617994
[ANSWERS] participated in World War II
['Q362', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q362 property:P710 ?y . ?y rdf:type ontology:Q15617994 }
France Japan United States of America Italy United Kingdom
Italy, United States of America and France participated in World War II
Italy United States of America France
action filter_type
action find
entity World War II
relation participant
type designation for an administrative territorial entity
['World War II', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:World_War_II property:participant ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q362
Q1048835
USER
And which political territory?
(Q362,P710,c(Q1048835))
action filter_type
action find
entity Q362
relation P710
type Q1048835
['Q362', 'P710', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q362 property:P710 ?u . ?u rdf:type ontology:Q1048835 }
World War II
action filter_type
action find
entity World War II
relation participant
type political territorial entity
['World War II', 'participant', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:World_War_II property:participant ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q362,P710,c(Q1048835))
action filter_type
action find
entity Q362
relation P710
type Q1048835
[ANSWER]
['Q362', 'P710', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { resource:Q362 property:P710 ?u . ?u rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity World War II
relation participant
type political territorial entity
['World War II', 'participant', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:World_War_II property:participant ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19013362 Q38789
P276
Q56061
USER
Which administrative territories are Battle of Stalingrad or Doodsdwarsweg located ?
OR((Q38789,P276,c(Q56061)), (Q19013362,P276,c(Q56061)))
action filter_type
action union
action find
entity Q38789
relation P276
action find
entity Q19013362
relation P276
type Q56061
{'OR': [['Q38789', 'P276', {'concept': 'Q56061'}], ['Q19013362', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q38789 property:P276 ?j } UNION { resource:Q19013362 property:P276 ?j } } . ?j rdf:type ontology:Q56061 }
Doodsdwarsweg Battle of Stalingrad
action filter_type
action union
action find
entity Battle of Stalingrad
relation location
action find
entity Doodsdwarsweg
relation location
type administrative territorial entity
{'OR': [['Battle of Stalingrad', 'location', {'concept': 'administrative territorial entity'}], ['Doodsdwarsweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Battle_of_Stalingrad property:location ?j } UNION { resource:Doodsdwarsweg property:location ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2469803 Q914
SYSTEM
Bornerbroek, Volgograd
Q2469803 Q914
OR((Q38789,P276,c(Q56061)), (Q19013362,P276,c(Q56061)))
action filter_type
action union
action find
entity Q38789
relation P276
action find
entity Q19013362
relation P276
type Q56061
[ANSWERS] are Battle of Stalingrad or Doodsdwarsweg located
{'OR': [['Q38789', 'P276', {'concept': 'Q56061'}], ['Q19013362', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q38789 property:P276 ?j } UNION { resource:Q19013362 property:P276 ?j } } . ?j rdf:type ontology:Q56061 }
Bornerbroek Volgograd
Bornerbroek and Volgograd are Battle of Stalingrad or Doodsdwarsweg located
Bornerbroek Volgograd
action filter_type
action union
action find
entity Battle of Stalingrad
relation location
action find
entity Doodsdwarsweg
relation location
type administrative territorial entity
{'OR': [['Battle of Stalingrad', 'location', {'concept': 'administrative territorial entity'}], ['Doodsdwarsweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Battle_of_Stalingrad property:location ?j } UNION { resource:Doodsdwarsweg property:location ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2469803 Q914
P17
Q15617994
USER
Which administrative territories are Bornerbroek and Volgograd a part of ?
(Q2469803,P17,c(Q15617994)) (Q914,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2469803
relation P17
type Q15617994
action filter_type
action find
entity Q914
relation P17
type Q15617994
['Q2469803', 'P17', {'concept': 'Q15617994'}] ['Q914', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q15617994 . resource:Q2469803 property:P17 ?q } UNION { resource:Q914 property:P17 ?q . ?q rdf:type ontology:Q15617994 } }
Bornerbroek Volgograd
action union
action filter_type
action find
entity Bornerbroek
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Volgograd
relation country
type designation for an administrative territorial entity
['Bornerbroek', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Volgograd', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bornerbroek property:country ?q } UNION { resource:Volgograd property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q55 Q159
SYSTEM
Netherlands, Russia
Q55 Q159
(Q2469803,P17,c(Q15617994)) (Q914,P17,c(Q15617994))
action union
action filter_type
action find
entity Q2469803
relation P17
type Q15617994
action filter_type
action find
entity Q914
relation P17
type Q15617994
[ANSWERS] are Bornerbroek and Volgograd a part of
['Q2469803', 'P17', {'concept': 'Q15617994'}] ['Q914', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:Q15617994 . resource:Q2469803 property:P17 ?q } UNION { resource:Q914 property:P17 ?q . ?q rdf:type ontology:Q15617994 } }
Netherlands Russia
Netherlands and Russia are Bornerbroek and Volgograd a part of
Netherlands Russia
action union
action filter_type
action find
entity Bornerbroek
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Volgograd
relation country
type designation for an administrative territorial entity
['Bornerbroek', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Volgograd', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bornerbroek property:country ?q } UNION { resource:Volgograd property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P38
Q8142
USER
What is considered to be the currency of Russia ?
(Q159,P38,c(Q8142))
action filter_type
action find
entity Q159
relation P38
type Q8142
['Q159', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?t WHERE { resource:Q159 property:P38 ?t . ?t rdf:type ontology:Q8142 }
Russia
action filter_type
action find
entity Russia
relation currency
type currency
['Russia', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?t WHERE { resource:Russia property:currency ?t . ?t rdf:type ontology:currency }
[]
currency
Q615640
SYSTEM
Soviet ruble
Q615640
(Q159,P38,c(Q8142))
action filter_type
action find
entity Q159
relation P38
type Q8142
[ANSWER] is considered to be the currency of Russia
['Q159', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?t WHERE { resource:Q159 property:P38 ?t . ?t rdf:type ontology:Q8142 }
Soviet ruble
Soviet ruble is considered to be the currency of Russia
Soviet ruble
action filter_type
action find
entity Russia
relation currency
type currency
['Russia', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?t WHERE { resource:Russia property:currency ?t . ?t rdf:type ontology:currency }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q55
Q8142
USER
And also tell me about Netherlands?
(Q55,P38,c(Q8142))
action filter_type
action find
entity Q55
relation P38
type Q8142
['Q55', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?k WHERE { resource:Q55 property:P38 ?k . ?k rdf:type ontology:Q8142 }
Netherlands
action filter_type
action find
entity Netherlands
relation currency
type currency
['Netherlands', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?k WHERE { resource:Netherlands property:currency ?k . ?k rdf:type ontology:currency }
[]
currency
Q4917
SYSTEM
United States dollar
Q4917
(Q55,P38,c(Q8142))
action filter_type
action find
entity Q55
relation P38
type Q8142
[ANSWER]
['Q55', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?k WHERE { resource:Q55 property:P38 ?k . ?k rdf:type ontology:Q8142 }
United States dollar
United States dollar
action filter_type
action find
entity Netherlands
relation currency
type currency
['Netherlands', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?k WHERE { resource:Netherlands property:currency ?k . ?k rdf:type ontology:currency }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q38 Q615640
P530 P38
Q15617994
USER
Which administrative territories have Soviet ruble as their currency and have ambassadorial relations with Italy ?
AND((c(Q15617994),P38,Q615640), (c(Q15617994),P530,Q38))
action filter_type
action intersection
action find_reverse
entity Q615640
relation P38
action find_reverse
entity Q38
relation P530
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P38', 'Q615640'], [{'concept': 'Q15617994'}, 'P530', 'Q38']]}
SELECT DISTINCT ?r WHERE { ?r property:P38 resource:Q615640 . ?r property:P530 resource:Q38 . ?r rdf:type ontology:Q15617994 }
Italy Soviet ruble
action filter_type
action intersection
action find_reverse
entity Soviet ruble
relation currency
action find_reverse
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'currency', 'Soviet ruble'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Italy']]}
SELECT DISTINCT ?r WHERE { ?r property:currency resource:Soviet_ruble . ?r property:diplomatic_relation resource:Italy . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
AND((c(Q15617994),P38,Q615640), (c(Q15617994),P530,Q38))
action filter_type
action intersection
action find_reverse
entity Q615640
relation P38
action find_reverse
entity Q38
relation P530
type Q15617994
[ANSWER] have Soviet ruble as their currency and have ambassadorial relations with Italy
{'AND': [[{'concept': 'Q15617994'}, 'P38', 'Q615640'], [{'concept': 'Q15617994'}, 'P530', 'Q38']]}
SELECT DISTINCT ?r WHERE { ?r property:P38 resource:Q615640 . ?r property:P530 resource:Q38 . ?r rdf:type ontology:Q15617994 }
Russia
Russia have Soviet ruble as their currency and have ambassadorial relations with Italy
Russia
action filter_type
action intersection
action find_reverse
entity Soviet ruble
relation currency
action find_reverse
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'currency', 'Soviet ruble'], [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Italy']]}
SELECT DISTINCT ?r WHERE { ?r property:currency resource:Soviet_ruble . ?r property:diplomatic_relation resource:Italy . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q159 Q17
P530
Q15617994
USER
Does Japan have diplomatic relationships with Russia ?
(Q159,P530,Q17)
action is_in
entity Q17
action find
entity Q159
relation P530
['Q159', 'P530', 'Q17']
ASK WHERE { resource:Q159 property:P530 resource:Q17 }
Russia Japan
action is_in
entity Japan
action find
entity Russia
relation diplomatic relation
['Russia', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Russia property:diplomatic_relation resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q159,P530,Q17)
action is_in
entity Q17
action find
entity Q159
relation P530
[ANSWER]
['Q159', 'P530', 'Q17']
ASK WHERE { resource:Q159 property:P530 resource:Q17 }
Yes
action is_in
entity Japan
action find
entity Russia
relation diplomatic relation
['Russia', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Russia property:diplomatic_relation resource:Japan }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with around 12 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 12
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?p = 12 ) . { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?p ) WHERE { ?v property:P530 ?h . ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?v } }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?p = 12 ) . { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?p ) WHERE { ?v property:diplomatic_relation ?h . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
29
Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q43 Q41 Q796 Q794 Q822 Q241 Q31 Q27 Q222 Q347 Q17 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 12
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?p = 12 ) . { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?p ) WHERE { ?v property:P530 ?h . ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?v } }
Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Turkey Greece Iraq Iran Lebanon Cuba Belgium Ireland Albania Liechtenstein Japan Czech Republic Angola Egypt Libya Cape Verde Zambia
29
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?p = 12 ) . { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?p ) WHERE { ?v property:diplomatic_relation ?h . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories have min number of holidays or people as their patron saint ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action argmin
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?s ) WHERE { ?o rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?e ) WHERE { { ?h property:P417 ?w . ?h rdf:type ontology:Q56061 . ?w rdf:type ontology:Q1445650 } UNION { ?h property:P417 ?w . ?h rdf:type ontology:Q56061 . ?w rdf:type ontology:Q502895 } } GROUP BY ?h } . FILTER ( ?e = ?n ) }
action argmin
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?s ) WHERE { ?o rdf:type ?x . VALUES ( ?x ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?b } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?e ) WHERE { { ?h property:patron_saint ?w . ?h rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:holiday } UNION { ?h property:patron_saint ?w . ?h rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:common_name } } GROUP BY ?h } . FILTER ( ?e = ?n ) }
[]
holiday common name administrative territorial entity
Q6221 Q329984 Q4361
SYSTEM
Brescia, Úbeda, Curitiba
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action argmin
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
[ANSWERS] have min number of holidays or people as their patron saint
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?s ) WHERE { ?o rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?e ) WHERE { { ?h property:P417 ?w . ?h rdf:type ontology:Q56061 . ?w rdf:type ontology:Q1445650 } UNION { ?h property:P417 ?w . ?h rdf:type ontology:Q56061 . ?w rdf:type ontology:Q502895 } } GROUP BY ?h } . FILTER ( ?e = ?n ) }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
Brescia, Úbeda and Curitiba have min number of holidays or people as their patron saint
Brescia Úbeda Curitiba
action argmin
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?n ) { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?s ) WHERE { ?o rdf:type ?x . VALUES ( ?x ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?b } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?e ) WHERE { { ?h property:patron_saint ?w . ?h rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:holiday } UNION { ?h property:patron_saint ?w . ?h rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:common_name } } GROUP BY ?h } . FILTER ( ?e = ?n ) }
[]