Simple Question (Direct)
Simple Question
Q2422017
P27
Q15617994
USER
Which administrative territory is the native country of Thomas Annandale ?
(Q2422017,P27,c(Q15617994))
action filter_type
action find
entity Q2422017
relation P27
type Q15617994
['Q2422017', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q2422017 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Thomas Annandale
action filter_type
action find
entity Thomas Annandale
relation country of citizenship
type designation for an administrative territorial entity
['Thomas Annandale', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Thomas_Annandale property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q2422017,P27,c(Q15617994))
action filter_type
action find
entity Q2422017
relation P27
type Q15617994
In [ANSWER] is the native country of Thomas Annandale
['Q2422017', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q2422017 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
United Kingdom
In United Kingdom is the native country of Thomas Annandale
United Kingdom
action filter_type
action find
entity Thomas Annandale
relation country of citizenship
type designation for an administrative territorial entity
['Thomas Annandale', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Thomas_Annandale property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2422017
P921
Q191067
USER
Which article has that person as its main topic ?
(c(Q191067),P921,Q145)
action filter_type
action find_reverse
entity Q2422017
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q145']
SELECT DISTINCT ?g WHERE { ?g property:P921 resource:Q2422017 . ?g rdf:type ontology:Q191067 }
Thomas Annandale
action filter_type
action find_reverse
entity Thomas Annandale
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'United Kingdom']
SELECT DISTINCT ?g WHERE { ?g property:main_subject resource:Thomas_Annandale . ?g rdf:type ontology:article }
[]
article
Q19045008
SYSTEM
Annandale, Thomas (DNB12)
Q19045008
(c(Q191067),P921,Q145)
action filter_type
action find_reverse
entity Q2422017
relation P921
type Q191067
[ANSWER] has that person as its main topic
[{'concept': 'Q191067'}, 'P921', 'Q145']
SELECT DISTINCT ?g WHERE { ?g property:P921 resource:Q2422017 . ?g rdf:type ontology:Q191067 }
Annandale, Thomas (DNB12)
Annandale, Thomas (DNB12) has that person as its main topic
Annandale, Thomas (DNB12)
action filter_type
action find_reverse
entity Thomas Annandale
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'United Kingdom']
SELECT DISTINCT ?g WHERE { ?g property:main_subject resource:Thomas_Annandale . ?g rdf:type ontology:article }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q258974
P138
Q15617994 Q62447 Q838948
USER
Which administrative territories are more number of aerodromes and works of art named after than Bitburg ?
(c(Q62447)|c(Q838948),P138,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q258974
relation P138
type Q62447
type Q838948
[[{'concept': 'Q62447'}, {'concept': 'Q838948'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P138 resource:Q258974 . { { ?x rdf:type ontology:Q62447 } UNION { ?x rdf:type ontology:Q838948 } } } } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?a ) WHERE { { ?k property:P138 ?v . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q62447 } UNION { ?k rdf:type ontology:Q838948 . ?v rdf:type ontology:Q15617994 . ?k property:P138 ?v } } GROUP BY ?v } }
Bitburg
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Bitburg
relation named after
type aerodrome
type work of art
[[{'concept': 'aerodrome'}, {'concept': 'work of art'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:named_after resource:Bitburg . { { ?x rdf:type ontology:aerodrome } UNION { ?x rdf:type ontology:work_of_art } } } } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?a ) WHERE { { ?k property:named_after ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:aerodrome } UNION { ?k rdf:type ontology:work_of_art . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:named_after ?v } } GROUP BY ?v } }
[]
designation for an administrative territorial entity aerodrome work of art
Q205050 Q675616
SYSTEM
Geilenkirchen, Langenzersdorf
Q205050 Q675616
(c(Q62447)|c(Q838948),P138,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q258974
relation P138
type Q62447
type Q838948
[ANSWERS] are more number of aerodromes and works of art named after than Bitburg
[[{'concept': 'Q62447'}, {'concept': 'Q838948'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P138 resource:Q258974 . { { ?x rdf:type ontology:Q62447 } UNION { ?x rdf:type ontology:Q838948 } } } } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?a ) WHERE { { ?k property:P138 ?v . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q62447 } UNION { ?k rdf:type ontology:Q838948 . ?v rdf:type ontology:Q15617994 . ?k property:P138 ?v } } GROUP BY ?v } }
Geilenkirchen Langenzersdorf
Geilenkirchen and Langenzersdorf are more number of aerodromes and works of art named after than Bitburg
Geilenkirchen Langenzersdorf
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Bitburg
relation named after
type aerodrome
type work of art
[[{'concept': 'aerodrome'}, {'concept': 'work of art'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:named_after resource:Bitburg . { { ?x rdf:type ontology:aerodrome } UNION { ?x rdf:type ontology:work_of_art } } } } . FILTER ( ?a > ?u ) . { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?a ) WHERE { { ?k property:named_after ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:aerodrome } UNION { ?k rdf:type ontology:work_of_art . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:named_after ?v } } GROUP BY ?v } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1028
P138
Q15617994 Q62447 Q838948
USER
And how about Morocco?
(c(Q62447)|c(Q838948),P138,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1028
relation P138
type Q62447
type Q838948
[[{'concept': 'Q62447'}, {'concept': 'Q838948'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?f ) WHERE { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:Q62447 ) ( ontology:Q838948 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P138 resource:Q1028 . { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q62447 ) } . ?z rdf:type ?c } } } . FILTER ( ?f > ?a ) }
Morocco
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Morocco
relation named after
type aerodrome
type work of art
[[{'concept': 'aerodrome'}, {'concept': 'work of art'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?f ) WHERE { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:aerodrome ) ( ontology:work_of_art ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:named_after resource:Morocco . { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:aerodrome ) } . ?z rdf:type ?c } } } . FILTER ( ?f > ?a ) }
[]
designation for an administrative territorial entity aerodrome work of art
Q205050 Q675616
SYSTEM
Geilenkirchen, Langenzersdorf
Q205050 Q675616
(c(Q62447)|c(Q838948),P138,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1028
relation P138
type Q62447
type Q838948
[ANSWERS]
[[{'concept': 'Q62447'}, {'concept': 'Q838948'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?f ) WHERE { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:Q62447 ) ( ontology:Q838948 ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P138 resource:Q1028 . { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q62447 ) } . ?z rdf:type ?c } } } . FILTER ( ?f > ?a ) }
Geilenkirchen Langenzersdorf
Geilenkirchen Langenzersdorf
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Morocco
relation named after
type aerodrome
type work of art
[[{'concept': 'aerodrome'}, {'concept': 'work of art'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?e ) AS ?f ) WHERE { ?e rdf:type ?s . VALUES ( ?s ) { ( ontology:aerodrome ) ( ontology:work_of_art ) } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:named_after resource:Morocco . { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:aerodrome ) } . ?z rdf:type ?c } } } . FILTER ( ?f > ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q201658 Q838948
USER
How many administrative territories are the origin of approximately 5076 film genres or works of art ?
(c(Q201658)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 5076
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { FILTER ( ?k = 5076 ) . { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { VALUES ( ?u ) { ( ontology:Q201658 ) ( ontology:Q838948 ) } . ?a rdf:type ?u } GROUP BY ?n } }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 5076
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { FILTER ( ?k = 5076 ) . { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { VALUES ( ?u ) { ( ontology:film_genre ) ( ontology:work_of_art ) } . ?a rdf:type ?u } GROUP BY ?n } }
[]
designation for an administrative territorial entity film genre work of art
SYSTEM
8
Q414 Q142 Q148 Q884 Q38 Q96 Q17 Q29
(c(Q201658)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 5076
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { FILTER ( ?k = 5076 ) . { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { VALUES ( ?u ) { ( ontology:Q201658 ) ( ontology:Q838948 ) } . ?a rdf:type ?u } GROUP BY ?n } }
Argentina France People's Republic of China South Korea Italy Mexico Japan Spain
8
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 5076
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { FILTER ( ?k = 5076 ) . { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { VALUES ( ?u ) { ( ontology:film_genre ) ( ontology:work_of_art ) } . ?a rdf:type ?u } GROUP BY ?n } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q205050
P17
Q1048835
USER
How many political territories are Geilenkirchen a part of ?
(Q205050,P17,c(Q1048835))
action count
action filter_type
action find
entity Q205050
relation P17
type Q1048835
['Q205050', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Q205050 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
Geilenkirchen
action count
action filter_type
action find
entity Geilenkirchen
relation country
type political territorial entity
['Geilenkirchen', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Geilenkirchen property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q183
(Q205050,P17,c(Q1048835))
action count
action filter_type
action find
entity Q205050
relation P17
type Q1048835
[ANSWER]
['Q205050', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Q205050 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
Germany
1
action count
action filter_type
action find
entity Geilenkirchen
relation country
type political territorial entity
['Geilenkirchen', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { resource:Geilenkirchen property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1638096
Q1048835
USER
And also tell me about Køge Bay?
(Q1638096,P17,c(Q1048835))
action count
action filter_type
action find
entity Q1638096
relation P17
type Q1048835
['Q1638096', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Q1638096 property:P17 ?j . ?j rdf:type ontology:Q1048835 }
Køge Bay
action count
action filter_type
action find
entity Køge Bay
relation country
type political territorial entity
['Køge Bay', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Køge_Bay property:country ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
(Q1638096,P17,c(Q1048835))
action count
action filter_type
action find
entity Q1638096
relation P17
type Q1048835
[ANSWER]
['Q1638096', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Q1638096 property:P17 ?j . ?j rdf:type ontology:Q1048835 }
1
action count
action filter_type
action find
entity Køge Bay
relation country
type political territorial entity
['Køge Bay', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Køge_Bay property:country ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1638096
P276
Q1190554
USER
What are situated at that body of water ?
action filter_type
action find_reverse
entity Q1638096
relation P276
type Q1190554
SELECT DISTINCT ?c WHERE { ?c property:P276 resource:Q1638096 . ?c rdf:type ontology:Q1190554 }
Køge Bay
action filter_type
action find_reverse
entity Køge Bay
relation location
type event
SELECT DISTINCT ?c WHERE { ?c property:location resource:Køge_Bay . ?c rdf:type ontology:event }
[]
event
Q1446460 Q2265621
SYSTEM
Action of 4 October 1710, Battle of Køge Bay
Q1446460 Q2265621
action filter_type
action find_reverse
entity Q1638096
relation P276
type Q1190554
[ANSWERS] are situated at that body of water
SELECT DISTINCT ?c WHERE { ?c property:P276 resource:Q1638096 . ?c rdf:type ontology:Q1190554 }
Action of 4 October 1710 Battle of Køge Bay
Action of 4 October 1710 and Battle of Køge Bay are situated at that body of water
Action of 4 October 1710 Battle of Køge Bay
action filter_type
action find_reverse
entity Køge Bay
relation location
type event
SELECT DISTINCT ?c WHERE { ?c property:location resource:Køge_Bay . ?c rdf:type ontology:event }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7968673
P361
Q1190554 Q502895 Q15619164
USER
Which events are approximately the same number of people or abstract beings a part of as War of the Bucket ?
(c(Q502895)|c(Q15619164),P361,c(Q1190554))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q502895
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q7968673
relation P361
type Q502895
type Q15619164
[[{'concept': 'Q502895'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) ?w WHERE { { ?p property:P361 ?w . ?w rdf:type ontology:Q1190554 . ?p rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q1190554 . ?p rdf:type ontology:Q15619164 . ?p property:P361 ?w } } GROUP BY ?w } . FILTER ( ?y = ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P361 resource:Q7968673 . { { ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q15619164 } } } } }
War of the Bucket
action approx
action union
action find_reverse_tuple_counts
relation part of
type event
type common name
action find_reverse_tuple_counts
relation part of
type event
type abstract being
action count
action filter_multi_types
action find_reverse
entity War of the Bucket
relation part of
type common name
type abstract being
[[{'concept': 'common name'}, {'concept': 'abstract being'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) ?w WHERE { { ?p property:part_of ?w . ?w rdf:type ontology:event . ?p rdf:type ontology:common_name } UNION { ?w rdf:type ontology:event . ?p rdf:type ontology:abstract_being . ?p property:part_of ?w } } GROUP BY ?w } . FILTER ( ?y = ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:part_of resource:War_of_the_Bucket . { { ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:abstract_being } } } } }
[]
event common name abstract being
Q218678 Q51654 Q16470
SYSTEM
North African Campaign, Second Crusade, Normandy landings
Q87138 Q11347454 Q19364861 Q15726688 Q5887669 Q152218 Q716562 Q19870743 Q1458235 Q11663 Q576338 Q287942 Q15833607 Q1245157 Q4709161 Q1093550 Q869045 Q7573442 Q3445341 Q696844 Q49092 Q5685042 Q19362030 Q842774 Q654006 Q1934591 Q2091916 Q683912 Q638530 Q20821272 Q132568 Q737907 Q7569936 Q4126360 Q2334719 Q164348 Q184637 Q2495510 Q1842866 Q221941 Q576292 Q815216 Q250747 Q193603 Q827612 Q15946570 Q186284 Q233505 Q7109930 Q17021072 Q2067876 Q109251 Q5916 Q492126 Q195983 Q16471 Q16470 Q697022 Q737542 Q2408799 Q638608 Q385378 Q4978527 Q78994 Q4513932 Q4141642 Q217145 Q1765465 Q51661 Q51660 Q392213 Q21030182 Q4743407 Q46857 Q151290 Q1514908 Q1154050 Q151340 Q15013125 Q212658 Q18639147 Q517578 Q830059 Q374814 Q870196 Q523154 Q1136575 Q16146546 Q629965 Q8669 Q1151913 Q952881 Q21482801 Q814235 Q482456 Q174205 Q189508 Q1417059 Q646322 Q572291 Q1647768 Q743776 Q51662 Q19429010 Q138107 Q83055 Q2946372 Q254106 Q7860 Q210714 Q8016240 Q477973 Q916495 Q582584 Q1756029 Q18817 Q7885422 Q1657839 Q3119190 Q1827267 Q714274 Q1144824 Q201676 Q246863 Q327035 Q430726 Q216184 Q1340107 Q1225409 Q2704441 Q4366849 Q48314 Q2026016 Q5547987 Q298864 Q223604 Q202161 Q168556 Q18536369 Q605977 Q18378977 Q789406 Q630259 Q19864219 Q18145759 Q28545 Q15303938 Q464512 Q7573405 Q8050376 Q7506756 Q2288144 Q151018 Q688308 Q7333201 Q856216 Q829875 Q324438 Q221967 Q239060 Q15553019 Q154031 Q218678 Q169072 Q1130507 Q202298 Q1134220 Q631795 Q340075 Q464980 Q51656 Q51657 Q150701 Q51655 Q4825628 Q687572 Q3310304 Q673175 Q27653685 Q1758572 Q468293 Q7567350 Q290178 Q7968673 Q164983 Q2889354 Q18606884 Q821283 Q1525846 Q2524228 Q6068230 Q162362 Q3509177 Q153650 Q261776 Q6165880 Q3491709 Q208156 Q154182 Q23687335 Q750567 Q296754 Q51649 Q4825457 Q736268 Q17005775 Q1498028 Q315921 Q315342 Q194132 Q123210 Q1372308 Q4465891 Q476300 Q6449024 Q712461 Q377269 Q847301 Q1993443 Q2649081 Q18326286 Q482090 Q162357 Q2117576 Q1413732 Q6133239 Q17189951 Q426227 Q51654 Q604897 Q953045 Q21083298 Q6762017 Q27145365 Q18208094 Q1440764 Q426099 Q3769089 Q685683 Q807843 Q696823 Q130861 Q692065 Q235344 Q617333 Q697625 Q165725 Q3778609 Q7127419 Q2761147 Q417744 Q684324 Q617409 Q11448 Q1070342 Q482979 Q158677 Q10862448 Q152004 Q16918333 Q3402214
(c(Q502895)|c(Q15619164),P361,c(Q1190554))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q502895
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q7968673
relation P361
type Q502895
type Q15619164
[ANSWERS] are approximately the same number of people or abstract beings a part of as War of the Bucket
[[{'concept': 'Q502895'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) ?w WHERE { { ?p property:P361 ?w . ?w rdf:type ontology:Q1190554 . ?p rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q1190554 . ?p rdf:type ontology:Q15619164 . ?p property:P361 ?w } } GROUP BY ?w } . FILTER ( ?y = ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P361 resource:Q7968673 . { { ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q15619164 } } } } }
Greco-Turkish War Neapolitan campaigns of Louis the Great Internal conflict in Bangladesh Esperanto meeting Nicaraguan civil war Nine Years' War Battle of Hakodate Anglo-French war of 1202–14 Battle of the Upper Baetis weather Japanese invasions of Korea Russo-Turkish War Annexation of Crimea by the Russian Federation Battle of Loos Albanian Revolt of 1911 Western Sahara conflict Queen Anne's War Spanish reconquest of Mexico Saintonge War Battle of Anzio 1948 Arab–Israeli War Hawkesbury and Nepean Wars aftermath of the 2014–15 Yemeni coup d'état Polish–Ukrainian War Second Northern War Battle of North Borneo Reform War Operation Tractable Texas Revolution axiomatisation Battle of the Somme Latin War Southern Front of the Russian Civil War Glyndŵr Rising legal case Hungarian Revolution of 1956 Ten Years' War Battle of Reval Battle of Aleppo War of the Quadruple Alliance Fourth Anglo-Dutch War Siege of Sevastopol Race to the Sea ontogeny Jugurthine War Yemeni Crisis Polish–Soviet War Second Barbary War Ottoman Invasion of Mani Pemmican War Polish–Swedish War (1600-29) Samnite Wars spaceflight Frisian–Frankish wars Franco-Flemish War Invasion of Normandy Normandy landings Battle of the Scheldt Genpei War Battle of the Misrata frontline software development construction Bruce campaign in Ireland Napoleonic Wars Montenegrin–Ottoman War Anglo-Russian invasion of Holland Guadalcanal Campaign Middle Eastern theatre of World War I Seventh Crusade Sixth Crusade Siege of Orléans Battle of Kunduz American Civil Liberties Union v. National Security Agency scientific method Battle of Moscow Cuban War of Independence Peninsula Campaign Battle of France Latin War War of the Polish Succession Byzantine–Bulgarian war of 894–896 King George's War Battle of Red Cliffs certification Russo-Swedish War Caucasus Campaign Vandalic War Civil conflict in the Philippines Russo-Swedish War Arab–Israeli conflict First Anglo-Dutch War French intervention in Mexico Islamic terrorism crisis in France German Campaign of 1813 Fall of Saigon Russo-Turkish War Glorious Revolution First Fitna Franco-Dutch War Guelders Wars First Mithridatic War First Peloponnesian War Northern Crusades 2014 Odessa clashes War of the Sixth Coalition Operation Barbarossa Northern Mali conflict Crimean War nature 2011 military intervention in Libya trial Gothic War Second Anglo-Dutch War First Anglo–Sikh War Operation Tonga War of the First Coalition Battle for Narva (1944) Ten Days' Campaign Roman-Etruscan Wars Byzantine–Seljuq wars Allied advance from Paris to the Rhine Battle of Messines funeral Livonian War Battle of Gazala Anglo-Spanish War (1585–1604) Western Front (World War II) Cantabrian Wars Moro conflict Chilean Civil War of 1891 Battle of the Border Battle of Waterloo Operation Cartwheel Georgian-Seljuk wars Neapolitan War Greco-Italian War Gallic War Schmalkaldic War Battle of Donetsk Airport War of the Fourth Coalition Naderian Wars Balkans Campaign Byzantine–Ottoman Wars Anbar offensive 2014–15 Yemeni coup d'état teaching Islamic Front–Free Syrian Army conflict Battle of Balaclava Spanish invasion of Portugal Yavapai War Siamese revolution of 1688 Byzantine–Bulgarian wars Battle of the Bulge Swedish War of Liberation Rif Dimashq offensive Beaver Wars Nigerian Civil War War of the Pyrenees Brusilov Offensive Arab Revolt (1916–1918) Anbar clashes (2013–2014) German Peasants' War North African Campaign Colombian armed conflict Hundred Days Offensive Japanese tea ceremony Mongol invasion of Rus' Kalmar War Moroccan–Portuguese conflicts exhibition Fourth Crusade Albigensian Crusade War of the Spanish Succession Third Crusade reprisal operations Battle of the Frontiers Second War of Scottish Independence French Wars of Religion War in the Black Sea Hook and Cod wars First Barbary War South German Offensive economic crisis War of the Bucket Gallipoli campaign Monastir Offensive Old Towns and New Needs; also the Town Extension Plan Battle of Warsaw 2012 Tuareg rebellion Italian War of 1551–1559 Iraqi–Kurdish conflict Balkans Campaign Battle of Narva Austro-Prussian War Battles of Rzhev Soviet invasion of Manchuria Glencairn's rising Mongol invasions of Japan Battle of Berlin Warburton Lectures Spring Offensive Battle of Singapore First Crusade Austrian-Hungarian War Finnish War Idlib Governorate clashes Hildesheim Diocesan Feud Thirteen Years' War Burgundian Wars Operation Torch Russo-Turkish War Jōkyū War Ottoman–Persian War competition Kuwait–Nejd Border War Battle of Aizu Dutch–Portuguese War political campaign Battle of the St. Lawrence Battle of the Netherlands Kublai Khan's Campaigns steelmaking Battle of Smolensk Puget Sound War Kashmir conflict Operation Zafar 7 KYOTO Cross Media Experience Battle of Passchendaele Second Crusade Battle of Dien Bien Phu metalwork Israeli–Palestinian conflict Marian civil war battles of Schooneveld Turkish involvement in the Syrian Civil War Battle of Timor Siege of Antwerp Second Fitna First Schleswig War Bishops' Wars Battle for Caen Battle of Kursk Leningrad–Novgorod Offensive Battle of the Alamola Franco-Spanish War (1635–1659) Battle of Belgium Balkan Wars Despenser War Palestinian insurgency in South Lebanon meeting Dano-Swedish War War of the Fifth Coalition Argentine War of Independence radioactivity King William's War Battle of Pusan Perimeter Northern Seven Years' War Liberation Day War of the Pacific Ukrainian crisis Invasion of Portugal
North African Campaign, Second Crusade and Normandy landings are approximately the same number of people or abstract beings a part of as War of the Bucket
North African Campaign Second Crusade Normandy landings
action approx
action union
action find_reverse_tuple_counts
relation part of
type event
type common name
action find_reverse_tuple_counts
relation part of
type event
type abstract being
action count
action filter_multi_types
action find_reverse
entity War of the Bucket
relation part of
type common name
type abstract being
[[{'concept': 'common name'}, {'concept': 'abstract being'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) ?w WHERE { { ?p property:part_of ?w . ?w rdf:type ontology:event . ?p rdf:type ontology:common_name } UNION { ?w rdf:type ontology:event . ?p rdf:type ontology:abstract_being . ?p property:part_of ?w } } GROUP BY ?w } . FILTER ( ?y = ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:part_of resource:War_of_the_Bucket . { { ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:abstract_being } } } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P276
Q7275 Q161243
USER
How many states and dependent territories are that event situated ?
(Q218678,P276,c(Q7275)) (Q218678,P276,c(Q161243)) (Q218678,P276,c(Q7275)) (Q218678,P276,c(Q161243)) (Q51654,P276,c(Q7275)) (Q51654,P276,c(Q161243)) (Q16470,P276,c(Q7275)) (Q16470,P276,c(Q161243))
['Q218678', 'P276', {'concept': 'Q7275'}] ['Q218678', 'P276', {'concept': 'Q161243'}] ['Q218678', 'P276', {'concept': 'Q7275'}] ['Q218678', 'P276', {'concept': 'Q161243'}] ['Q51654', 'P276', {'concept': 'Q7275'}] ['Q51654', 'P276', {'concept': 'Q161243'}] ['Q16470', 'P276', {'concept': 'Q7275'}] ['Q16470', 'P276', {'concept': 'Q161243'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q218678 property:Q17334923 ?z } UNION { resource:Q218678 property:Q17334923 ?y } UNION { resource:Q218678 property:Q17334923 ?z } UNION { resource:Q218678 property:Q17334923 ?y } UNION { resource:Q51654 property:Q17334923 ?z } UNION { resource:Q51654 property:Q17334923 ?y } UNION { resource:Q16470 property:Q17334923 ?z } UNION { resource:Q16470 property:Q17334923 ?y } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q161243 }
['North African Campaign', 'location', {'concept': 'state'}] ['North African Campaign', 'location', {'concept': 'dependent territory'}] ['North African Campaign', 'location', {'concept': 'state'}] ['North African Campaign', 'location', {'concept': 'dependent territory'}] ['Second Crusade', 'location', {'concept': 'state'}] ['Second Crusade', 'location', {'concept': 'dependent territory'}] ['Normandy landings', 'location', {'concept': 'state'}] ['Normandy landings', 'location', {'concept': 'dependent territory'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:North_African_Campaign property:location ?z } UNION { resource:North_African_Campaign property:location ?y } UNION { resource:North_African_Campaign property:location ?z } UNION { resource:North_African_Campaign property:location ?y } UNION { resource:Second_Crusade property:location ?z } UNION { resource:Second_Crusade property:location ?y } UNION { resource:Normandy_landings property:location ?z } UNION { resource:Normandy_landings property:location ?y } } . ?z rdf:type ontology:state . ?y rdf:type ontology:dependent_territory }
[]
state dependent territory
Quantitative|Count|Mult. entity type|Clarification
Q16470
SYSTEM
Did you mean Normandy landings ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q218678 property:Q17334923 ?z } UNION { resource:Q218678 property:Q17334923 ?y } UNION { resource:Q218678 property:Q17334923 ?z } UNION { resource:Q218678 property:Q17334923 ?y } UNION { resource:Q51654 property:Q17334923 ?z } UNION { resource:Q51654 property:Q17334923 ?y } UNION { resource:Q16470 property:Q17334923 ?z } UNION { resource:Q16470 property:Q17334923 ?y } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q161243 }
Did you mean Normandy landings ?
Normandy landings
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:North_African_Campaign property:location ?z } UNION { resource:North_African_Campaign property:location ?y } UNION { resource:North_African_Campaign property:location ?z } UNION { resource:North_African_Campaign property:location ?y } UNION { resource:Second_Crusade property:location ?z } UNION { resource:Second_Crusade property:location ?y } UNION { resource:Normandy_landings property:location ?z } UNION { resource:Normandy_landings property:location ?y } } . ?z rdf:type ontology:state . ?y rdf:type ontology:dependent_territory }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant North African Campaign. Could you tell me the answer for that?
(Q218678,P276,c(Q7275)) (Q218678,P276,c(Q161243)) (Q218678,P276,c(Q7275)) (Q218678,P276,c(Q161243)) (Q51654,P276,c(Q7275)) (Q51654,P276,c(Q161243)) (Q16470,P276,c(Q7275)) (Q16470,P276,c(Q161243))
Q218678
['Q218678', 'P276', {'concept': 'Q7275'}] ['Q218678', 'P276', {'concept': 'Q161243'}] ['Q218678', 'P276', {'concept': 'Q7275'}] ['Q218678', 'P276', {'concept': 'Q161243'}] ['Q51654', 'P276', {'concept': 'Q7275'}] ['Q51654', 'P276', {'concept': 'Q161243'}] ['Q16470', 'P276', {'concept': 'Q7275'}] ['Q16470', 'P276', {'concept': 'Q161243'}]
['North African Campaign', 'location', {'concept': 'state'}] ['North African Campaign', 'location', {'concept': 'dependent territory'}] ['North African Campaign', 'location', {'concept': 'state'}] ['North African Campaign', 'location', {'concept': 'dependent territory'}] ['Second Crusade', 'location', {'concept': 'state'}] ['Second Crusade', 'location', {'concept': 'dependent territory'}] ['Normandy landings', 'location', {'concept': 'state'}] ['Normandy landings', 'location', {'concept': 'dependent territory'}]
[]
SYSTEM
1 states and 3 dependent territories
Q218272 Q124943 Q2017684 Q907234
(Q218678,P276,c(Q7275)) (Q218678,P276,c(Q161243)) (Q218678,P276,c(Q7275)) (Q218678,P276,c(Q161243)) (Q51654,P276,c(Q7275)) (Q51654,P276,c(Q161243)) (Q16470,P276,c(Q7275)) (Q16470,P276,c(Q161243))
[ANSWER]
['Q218678', 'P276', {'concept': 'Q7275'}] ['Q218678', 'P276', {'concept': 'Q161243'}] ['Q218678', 'P276', {'concept': 'Q7275'}] ['Q218678', 'P276', {'concept': 'Q161243'}] ['Q51654', 'P276', {'concept': 'Q7275'}] ['Q51654', 'P276', {'concept': 'Q161243'}] ['Q16470', 'P276', {'concept': 'Q7275'}] ['Q16470', 'P276', {'concept': 'Q161243'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q218678 property:Q17334923 ?z } UNION { resource:Q218678 property:Q17334923 ?y } UNION { resource:Q218678 property:Q17334923 ?z } UNION { resource:Q218678 property:Q17334923 ?y } UNION { resource:Q51654 property:Q17334923 ?z } UNION { resource:Q51654 property:Q17334923 ?y } UNION { resource:Q16470 property:Q17334923 ?z } UNION { resource:Q16470 property:Q17334923 ?y } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q161243 }
French Algeria Kingdom of Egypt French protectorate of Tunisia French protectorate in Morocco
1 states and 3 dependent territories
['North African Campaign', 'location', {'concept': 'state'}] ['North African Campaign', 'location', {'concept': 'dependent territory'}] ['North African Campaign', 'location', {'concept': 'state'}] ['North African Campaign', 'location', {'concept': 'dependent territory'}] ['Second Crusade', 'location', {'concept': 'state'}] ['Second Crusade', 'location', {'concept': 'dependent territory'}] ['Normandy landings', 'location', {'concept': 'state'}] ['Normandy landings', 'location', {'concept': 'dependent territory'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:North_African_Campaign property:location ?z } UNION { resource:North_African_Campaign property:location ?y } UNION { resource:North_African_Campaign property:location ?z } UNION { resource:North_African_Campaign property:location ?y } UNION { resource:Second_Crusade property:location ?z } UNION { resource:Second_Crusade property:location ?y } UNION { resource:Normandy_landings property:location ?z } UNION { resource:Normandy_landings property:location ?y } } . ?z rdf:type ontology:state . ?y rdf:type ontology:dependent_territory }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q16470
P607
Q2235308
USER
How many ship types did Normandy landings engage in ?
(c(Q2235308),P607,Q16470)
action count
action filter_type
action find_reverse
entity Q16470
relation P607
type Q2235308
[{'concept': 'Q2235308'}, 'P607', 'Q16470']
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:P607 resource:Q16470 . ?d rdf:type ontology:Q2235308 }
Normandy landings
action count
action filter_type
action find_reverse
entity Normandy landings
relation conflict
type ship type
[{'concept': 'ship type'}, 'conflict', 'Normandy landings']
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:conflict resource:Normandy_landings . ?d rdf:type ontology:ship_type }
[]
ship type
SYSTEM
4
Q10386514 Q3381131 Q1645144 Q19654984
(c(Q2235308),P607,Q16470)
action count
action filter_type
action find_reverse
entity Q16470
relation P607
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P607', 'Q16470']
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:P607 resource:Q16470 . ?d rdf:type ontology:Q2235308 }
USS LST-355 HNoMS Svenner HMS Enterprise LCT 7074
4
action count
action filter_type
action find_reverse
entity Normandy landings
relation conflict
type ship type
[{'concept': 'ship type'}, 'conflict', 'Normandy landings']
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:conflict resource:Normandy_landings . ?d rdf:type ontology:ship_type }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
How many administrative territories have tactful political relations with atleast 27 administrative territories or political territories ?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action atleast
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 27
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?m ) WHERE { { ?j property:P530 ?o . ?j rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } UNION { ?o rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 . ?j property:P530 ?o } } GROUP BY ?j } . FILTER ( ?m >= 27 ) }
action count
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 27
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?m ) WHERE { { ?j property:diplomatic_relation ?o . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?o } } GROUP BY ?j } . FILTER ( ?m >= 27 ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
4
Q155 Q38 Q230 Q184
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action count
action atleast
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 27
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?m ) WHERE { { ?j property:P530 ?o . ?j rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } UNION { ?o rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 . ?j property:P530 ?o } } GROUP BY ?j } . FILTER ( ?m >= 27 ) }
Brazil Italy Georgia Belarus
4
action count
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 27
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?m ) WHERE { { ?j property:diplomatic_relation ?o . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?o } } GROUP BY ?j } . FILTER ( ?m >= 27 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q205050
P47
Q56061 Q15617994
USER
How many administrative territories and administrative territories do Geilenkirchen share a border with ?
(c(Q56061),P47,Q205050) (c(Q15617994),P47,Q205050)
action count
action union
action filter_type
action find_reverse
entity Q205050
relation P47
type Q56061
action filter_type
action find_reverse
entity Q205050
relation P47
type Q15617994
[{'concept': 'Q56061'}, 'P47', 'Q205050'] [{'concept': 'Q15617994'}, 'P47', 'Q205050']
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { ?d property:P47 resource:Q205050 . ?d rdf:type ontology:Q56061 } UNION { ?d property:P47 resource:Q205050 . ?d rdf:type ontology:Q15617994 } }
Geilenkirchen
action count
action union
action filter_type
action find_reverse
entity Geilenkirchen
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Geilenkirchen
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Geilenkirchen'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Geilenkirchen']
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { ?d property:shares_border_with resource:Geilenkirchen . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d property:shares_border_with resource:Geilenkirchen . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q200122 Q14833
(c(Q56061),P47,Q205050) (c(Q15617994),P47,Q205050)
action count
action union
action filter_type
action find_reverse
entity Q205050
relation P47
type Q56061
action filter_type
action find_reverse
entity Q205050
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q56061'}, 'P47', 'Q205050'] [{'concept': 'Q15617994'}, 'P47', 'Q205050']
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { ?d property:P47 resource:Q205050 . ?d rdf:type ontology:Q56061 } UNION { ?d property:P47 resource:Q205050 . ?d rdf:type ontology:Q15617994 } }
Linnich Heinsberg
2
action count
action union
action filter_type
action find_reverse
entity Geilenkirchen
relation shares border with
type administrative territorial entity
action filter_type
action find_reverse
entity Geilenkirchen
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Geilenkirchen'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Geilenkirchen']
SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { { ?d property:shares_border_with resource:Geilenkirchen . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d property:shares_border_with resource:Geilenkirchen . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16470
P710
Q7275
USER
Which state was a participant of Normandy landings ?
(Q16470,P710,c(Q7275))
action filter_type
action find
entity Q16470
relation P710
type Q7275
['Q16470', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { resource:Q16470 property:P710 ?s . ?s rdf:type ontology:Q7275 }
Normandy landings
action filter_type
action find
entity Normandy landings
relation participant
type state
['Normandy landings', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { resource:Normandy_landings property:participant ?s . ?s rdf:type ontology:state }
[]
state
Q7318
SYSTEM
Nazi Germany
Q7318
(Q16470,P710,c(Q7275))
action filter_type
action find
entity Q16470
relation P710
type Q7275
Germany [ANSWER] was a participant of Normandy landings
['Q16470', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { resource:Q16470 property:P710 ?s . ?s rdf:type ontology:Q7275 }
Nazi Germany
Germany Nazi Germany was a participant of Normandy landings
Nazi Germany
action filter_type
action find
entity Normandy landings
relation participant
type state
['Normandy landings', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { resource:Normandy_landings property:participant ?s . ?s rdf:type ontology:state }
[]