Simple Question (Direct)
Simple Question
Q18057053
P21
Q290
USER
Which sex does Maxime Do Couto Teixeira have ?
(Q18057053,P21,c(Q290))
action filter_type
action find
entity Q18057053
relation P21
type Q290
['Q18057053', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q18057053 property:P21 ?h . ?h rdf:type ontology:Q290 }
Maxime Do Couto Teixeira
action filter_type
action find
entity Maxime Do Couto Teixeira
relation gender
type sex
['Maxime Do Couto Teixeira', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Maxime_Do_Couto_Teixeira property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18057053,P21,c(Q290))
action filter_type
action find
entity Q18057053
relation P21
type Q290
Maxime Do Couto Teixeira has a [ANSWER]
['Q18057053', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q18057053 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Maxime Do Couto Teixeira has a male
male
action filter_type
action find
entity Maxime Do Couto Teixeira
relation gender
type sex
['Maxime Do Couto Teixeira', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Maxime_Do_Couto_Teixeira property:gender ?h . ?h rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6581097
P21
Q7210356 Q2342494
USER
How many political organizations or collectables are a male ?
(c(Q7210356),P21,Q6581097) (c(Q2342494),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q7210356
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q2342494
[{'concept': 'Q7210356'}, 'P21', 'Q6581097'] [{'concept': 'Q2342494'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:Q2342494 ) ( ontology:Q7210356 ) } }
male
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type political organization
action filter_type
action find_reverse
entity male
relation gender
type collectable
[{'concept': 'political organization'}, 'gender', 'male'] [{'concept': 'collectable'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:collectable ) ( ontology:political_organization ) } }
[]
political organization collectable
SYSTEM
3
Q1162210 Q5473207 Q7456657
(c(Q7210356),P21,Q6581097) (c(Q2342494),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q7210356
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q2342494
[ANSWER]
[{'concept': 'Q7210356'}, 'P21', 'Q6581097'] [{'concept': 'Q2342494'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:Q2342494 ) ( ontology:Q7210356 ) } }
Fantômas Forward Moving Party Sethos
3
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type political organization
action filter_type
action find_reverse
entity male
relation gender
type collectable
[{'concept': 'political organization'}, 'gender', 'male'] [{'concept': 'collectable'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ?d . VALUES ( ?d ) { ( ontology:collectable ) ( ontology:political_organization ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9489 Q18057053
P47 P27
Q15617994
USER
Which administrative territories are Maxime Do Couto Teixeira an inhabitant of or are adjacent to Montanaro ?
OR((Q18057053,P27,c(Q15617994)), (Q9489,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q18057053
relation P27
action find
entity Q9489
relation P47
type Q15617994
{'OR': [['Q18057053', 'P27', {'concept': 'Q15617994'}], ['Q9489', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q9489 property:P47 ?t } UNION { resource:Q18057053 property:P27 ?t } } }
Montanaro Maxime Do Couto Teixeira
action filter_type
action union
action find
entity Maxime Do Couto Teixeira
relation country of citizenship
action find
entity Montanaro
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Maxime Do Couto Teixeira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Montanaro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Montanaro property:shares_border_with ?t } UNION { resource:Maxime_Do_Couto_Teixeira property:country_of_citizenship ?t } } }
[]
designation for an administrative territorial entity
Q142 Q9275 Q9131 Q9360 Q10256
SYSTEM
France, Chivasso, Caluso, Foglizzo, San Benigno Canavese
Q142 Q9275 Q9131 Q9360 Q10256
OR((Q18057053,P27,c(Q15617994)), (Q9489,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q18057053
relation P27
action find
entity Q9489
relation P47
type Q15617994
[ANSWERS] are Maxime Do Couto Teixeira an inhabitant of or are adjacent to Montanaro
{'OR': [['Q18057053', 'P27', {'concept': 'Q15617994'}], ['Q9489', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q9489 property:P47 ?t } UNION { resource:Q18057053 property:P27 ?t } } }
France Chivasso Caluso Foglizzo San Benigno Canavese
France, Chivasso, Caluso, Foglizzo and San Benigno Canavese are Maxime Do Couto Teixeira an inhabitant of or are adjacent to Montanaro
France Chivasso Caluso Foglizzo San Benigno Canavese
action filter_type
action union
action find
entity Maxime Do Couto Teixeira
relation country of citizenship
action find
entity Montanaro
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Maxime Do Couto Teixeira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Montanaro', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Montanaro property:shares_border_with ?t } UNION { resource:Maxime_Do_Couto_Teixeira property:country_of_citizenship ?t } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9360
P19
Q502895
USER
Which people have place of birth as that administrative territory ?
(c(Q502895),P19,Q9360)
action filter_type
action find_reverse
entity Q9360
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q9360']
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q9360 . ?l rdf:type ontology:Q502895 }
Foglizzo
action filter_type
action find_reverse
entity Foglizzo
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Foglizzo']
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Foglizzo . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q9360
SYSTEM
Did you mean Foglizzo ?
Q142 Q9275 Q9131 Q9360 Q10256
(c(Q502895),P19,Q142) (c(Q502895),P19,Q9275) (c(Q502895),P19,Q9131) (c(Q502895),P19,Q9360) (c(Q502895),P19,Q10256)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q142'] [{'concept': 'Q502895'}, 'P19', 'Q9275'] [{'concept': 'Q502895'}, 'P19', 'Q9131'] [{'concept': 'Q502895'}, 'P19', 'Q9360'] [{'concept': 'Q502895'}, 'P19', 'Q10256']
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q9360 . ?l rdf:type ontology:Q502895 }
France Chivasso Caluso Foglizzo San Benigno Canavese
Did you mean Foglizzo ?
Foglizzo
[{'concept': 'common name'}, 'place of birth', 'France'] [{'concept': 'common name'}, 'place of birth', 'Chivasso'] [{'concept': 'common name'}, 'place of birth', 'Caluso'] [{'concept': 'common name'}, 'place of birth', 'Foglizzo'] [{'concept': 'common name'}, 'place of birth', 'San Benigno Canavese']
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Foglizzo . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P19,Q9360)
[{'concept': 'Q502895'}, 'P19', 'Q9360']
[{'concept': 'common name'}, 'place of birth', 'Foglizzo']
[]
Q543260 Q3839310 Q3802201
SYSTEM
Giuseppe Bertello, Luigi Barbero, Isa Querio
Q543260 Q3839310 Q3802201
(c(Q502895),P19,Q9360)
action filter_type
action find_reverse
entity Q9360
relation P19
type Q502895
[ANSWERS] have place of birth as that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q9360']
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q9360 . ?l rdf:type ontology:Q502895 }
Giuseppe Bertello Luigi Barbero Isa Querio
Giuseppe Bertello, Luigi Barbero and Isa Querio have place of birth as that administrative territory
Giuseppe Bertello Luigi Barbero Isa Querio
action filter_type
action find_reverse
entity Foglizzo
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Foglizzo']
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Foglizzo . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atmost 6887 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 6887
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?n <= 6887 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 6887
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?n <= 6887 ) }
[]
musical instrument common name
SYSTEM
65
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 6887
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?n <= 6887 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
65
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 6887
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?n ) WHERE { ?d property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?n <= 6887 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1979
P840
Q15617994 Q838948 Q15416
USER
Which administrative territories are more number of works of art and television programs set in than Prince Edward Island ?
(c(Q838948)|c(Q15416),P840,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1979
relation P840
type Q838948
type Q15416
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?c ) WHERE { { ?q property:P840 ?e . ?e rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P840 ?e . ?e rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15416 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P840 resource:Q1979 . { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q15416 } } } } . FILTER ( ?c > ?h ) }
Prince Edward Island
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Prince Edward Island
relation narrative location
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?c ) WHERE { { ?q property:narrative_location ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:work_of_art } UNION { ?q property:narrative_location ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:television_program } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:narrative_location resource:Prince_Edward_Island . { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:television_program } } } } . FILTER ( ?c > ?h ) }
[]
designation for an administrative territorial entity work of art television program
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q377277 Q804 Q801 Q278221 Q186115 Q668 Q414 Q3278 Q142 Q55 Q1948 Q145 Q262 Q148 Q189 Q47428 Q842 Q36678 Q710 Q717 Q837 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q889 Q884 Q881 Q419 Q822 Q241 Q232782 Q244 Q1974 Q33 Q31 Q30 Q37 Q36 Q34 Q39 Q38 Q58477 Q739 Q423 Q851 Q12798 Q236 Q232 Q1093 Q20 Q1041 Q27 Q913434 Q29 Q127043 Q843 Q184 Q1028 Q1458 Q91217 Q1452 Q227 Q163966 Q2336399 Q96 Q17 Q1033 Q1030 Q191 Q962 Q963 Q298 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q912 Q2107 Q1007 Q14859 Q2742 Q836 Q79 Q77 Q774 Q810 Q1019 Q1014 Q1273 Q28 Q12620 Q800 Q1952 Q869 Q6247
(c(Q838948)|c(Q15416),P840,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1979
relation P840
type Q838948
type Q15416
[ANSWERS] are more number of works of art and television programs set in than Prince Edward Island
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?c ) WHERE { { ?q property:P840 ?e . ?e rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q838948 } UNION { ?q property:P840 ?e . ?e rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15416 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P840 resource:Q1979 . { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q15416 } } } } . FILTER ( ?c > ?h ) }
Glückstadt Panama Israel Berchtesgaden Montmartre India Argentina Charente-Maritime France Netherlands Manitoba United Kingdom Algeria People's Republic of China Iceland Valdobbiadene Oman West Bank Kiribati Venezuela Nepal South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Afghanistan South Korea Vietnam Peru Lebanon Cuba Portofino Barbados British Columbia Finland Belgium United States of America Lithuania Poland Sweden Switzerland Italy Capua Colombia North Korea Saudi Arabia Vendée Montenegro Kazakhstan Limburg Norway Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Pakistan Belarus Morocco Calabria Montepulciano Basilicata Azerbaijan Mitte Baluchistan Mexico Japan Nigeria Namibia Estonia Benin Botswana Chile Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Mali Wuppertal Guinea-Bissau Ansbach Münster Myanmar Egypt Uruguay Guatemala Jordan Madagascar Liberia Tuscany Hungary Mayenne Costa Rica Nova Scotia Thailand Mantua
Italy, Brazil and United States of America are more number of works of art and television programs set in than Prince Edward Island
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Prince Edward Island
relation narrative location
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?c ) WHERE { { ?q property:narrative_location ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:work_of_art } UNION { ?q property:narrative_location ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:television_program } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:narrative_location resource:Prince_Edward_Island . { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:television_program } } } } . FILTER ( ?c > ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q219
P840
Q15617994 Q838948 Q15416
USER
And what about Bulgaria?
(c(Q838948)|c(Q15416),P840,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q219
relation P840
type Q838948
type Q15416
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?b ) WHERE { { ?c property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q838948 } UNION { ?c property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15416 } } GROUP BY ?y } . FILTER ( ?b > ?q ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:P840 resource:Q219 . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } } } } }
Bulgaria
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Bulgaria
relation narrative location
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?b ) WHERE { { ?c property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:work_of_art } UNION { ?c property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:television_program } } GROUP BY ?y } . FILTER ( ?b > ?q ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:narrative_location resource:Bulgaria . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:television_program ) } } } } }
[]
designation for an administrative territorial entity work of art television program
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q377277 Q804 Q801 Q278221 Q186115 Q668 Q414 Q3278 Q142 Q55 Q1948 Q145 Q262 Q148 Q189 Q47428 Q842 Q36678 Q710 Q717 Q837 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q889 Q884 Q881 Q419 Q822 Q241 Q232782 Q244 Q1974 Q33 Q31 Q30 Q37 Q36 Q34 Q39 Q38 Q58477 Q739 Q423 Q851 Q12798 Q236 Q232 Q1093 Q20 Q1041 Q27 Q913434 Q29 Q127043 Q843 Q184 Q1028 Q1458 Q91217 Q1452 Q227 Q163966 Q2336399 Q96 Q17 Q1033 Q1030 Q191 Q962 Q963 Q298 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q912 Q2107 Q1007 Q14859 Q2742 Q836 Q79 Q77 Q774 Q810 Q1019 Q1014 Q1273 Q28 Q12620 Q800 Q1952 Q869 Q6247
(c(Q838948)|c(Q15416),P840,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q219
relation P840
type Q838948
type Q15416
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?b ) WHERE { { ?c property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q838948 } UNION { ?c property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15416 } } GROUP BY ?y } . FILTER ( ?b > ?q ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:P840 resource:Q219 . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:Q838948 ) ( ontology:Q15416 ) } } } } }
Glückstadt Panama Israel Berchtesgaden Montmartre India Argentina Charente-Maritime France Netherlands Manitoba United Kingdom Algeria People's Republic of China Iceland Valdobbiadene Oman West Bank Kiribati Venezuela Nepal South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Afghanistan South Korea Vietnam Peru Lebanon Cuba Portofino Barbados British Columbia Finland Belgium United States of America Lithuania Poland Sweden Switzerland Italy Capua Colombia North Korea Saudi Arabia Vendée Montenegro Kazakhstan Limburg Norway Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Pakistan Belarus Morocco Calabria Montepulciano Basilicata Azerbaijan Mitte Baluchistan Mexico Japan Nigeria Namibia Estonia Benin Botswana Chile Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Mali Wuppertal Guinea-Bissau Ansbach Münster Myanmar Egypt Uruguay Guatemala Jordan Madagascar Liberia Tuscany Hungary Mayenne Costa Rica Nova Scotia Thailand Mantua
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Bulgaria
relation narrative location
type work of art
type television program
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?b ) WHERE { { ?c property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:work_of_art } UNION { ?c property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:television_program } } GROUP BY ?y } . FILTER ( ?b > ?q ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r property:narrative_location resource:Bulgaria . { ?r rdf:type ?o . VALUES ( ?o ) { ( ontology:work_of_art ) ( ontology:television_program ) } } } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2530073
P840
Q166142
USER
Do Xenophobe have a setting location of those administrative territories ?
(Q2530073,P840,Q38) (Q2530073,P840,Q155) (Q2530073,P840,Q30)
action is_in
entity prev_answer
action find
entity Q2530073
relation P840
['Q2530073', 'P840', 'Q38'] ['Q2530073', 'P840', 'Q155'] ['Q2530073', 'P840', 'Q30']
ASK WHERE { VALUES ( ?j ) { ( resource:Q377277 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q2530073 property:P840 ?j }
Xenophobe
action is_in
entity prev_answer
action find
entity Xenophobe
relation narrative location
['Xenophobe', 'narrative location', 'Italy'] ['Xenophobe', 'narrative location', 'Brazil'] ['Xenophobe', 'narrative location', 'United States of America']
ASK WHERE { VALUES ( ?j ) { ( resource:Glückstadt ) ( resource:Panama ) ( resource:Israel ) } . resource:Xenophobe property:narrative_location ?j }
[]
application
SYSTEM
NO
(Q2530073,P840,Q38) (Q2530073,P840,Q155) (Q2530073,P840,Q30)
action is_in
entity prev_answer
action find
entity Q2530073
relation P840
[ANSWER]
['Q2530073', 'P840', 'Q38'] ['Q2530073', 'P840', 'Q155'] ['Q2530073', 'P840', 'Q30']
ASK WHERE { VALUES ( ?j ) { ( resource:Q377277 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q2530073 property:P840 ?j }
No
action is_in
entity prev_answer
action find
entity Xenophobe
relation narrative location
['Xenophobe', 'narrative location', 'Italy'] ['Xenophobe', 'narrative location', 'Brazil'] ['Xenophobe', 'narrative location', 'United States of America']
ASK WHERE { VALUES ( ?j ) { ( resource:Glückstadt ) ( resource:Panama ) ( resource:Israel ) } . resource:Xenophobe property:narrative_location ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P137
Q811979
USER
Which architectural structure was operated by United States of America ?
(c(Q811979),P137,Q30)
action filter_type
action find_reverse
entity Q30
relation P137
type Q811979
[{'concept': 'Q811979'}, 'P137', 'Q30']
SELECT DISTINCT ?u WHERE { ?u property:P137 resource:Q30 . ?u rdf:type ontology:Q811979 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'United States of America']
SELECT DISTINCT ?u WHERE { ?u property:operator resource:United_States_of_America . ?u rdf:type ontology:architectural_structure }
[]
architectural structure
Q5164573
SYSTEM
Consulate General of the United States, Hamburg
Q5164573
(c(Q811979),P137,Q30)
action filter_type
action find_reverse
entity Q30
relation P137
type Q811979
[ANSWER] was operated by United States of America
[{'concept': 'Q811979'}, 'P137', 'Q30']
SELECT DISTINCT ?u WHERE { ?u property:P137 resource:Q30 . ?u rdf:type ontology:Q811979 }
Consulate General of the United States, Hamburg
Consulate General of the United States, Hamburg was operated by United States of America
Consulate General of the United States, Hamburg
action filter_type
action find_reverse
entity United States of America
relation operator
type architectural structure
[{'concept': 'architectural structure'}, 'operator', 'United States of America']
SELECT DISTINCT ?u WHERE { ?u property:operator resource:United_States_of_America . ?u rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5164573
P127
Q7188
USER
Who is the owner of that architectural structure ?
(Q5164573,P127,c(Q7188))
action filter_type
action find
entity Q5164573
relation P127
type Q7188
['Q5164573', 'P127', {'concept': 'Q7188'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7188 . resource:Q5164573 property:P127 ?s }
Consulate General of the United States, Hamburg
action filter_type
action find
entity Consulate General of the United States, Hamburg
relation owned by
type government
['Consulate General of the United States, Hamburg', 'owned by', {'concept': 'government'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:government . resource:Consulate_General_of_the_United_States,_Hamburg property:owned_by ?s }
[]
government
Q48525
SYSTEM
Federal Government of the United States
Q48525
(Q5164573,P127,c(Q7188))
action filter_type
action find
entity Q5164573
relation P127
type Q7188
The owner of that architectural structure is the [ANSWER]
['Q5164573', 'P127', {'concept': 'Q7188'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q7188 . resource:Q5164573 property:P127 ?s }
Federal Government of the United States
The owner of that architectural structure is the Federal Government of the United States
Federal Government of the United States
action filter_type
action find
entity Consulate General of the United States, Hamburg
relation owned by
type government
['Consulate General of the United States, Hamburg', 'owned by', {'concept': 'government'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:government . resource:Consulate_General_of_the_United_States,_Hamburg property:owned_by ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q48525
P17
Q15617994
USER
Which administrative territory is that government situated in ?
(Q48525,P17,c(Q15617994))
action filter_type
action find
entity Q48525
relation P17
type Q15617994
['Q48525', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q48525 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Federal Government of the United States
action filter_type
action find
entity Federal Government of the United States
relation country
type designation for an administrative territorial entity
['Federal Government of the United States', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Federal_Government_of_the_United_States property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q48525,P17,c(Q15617994))
action filter_type
action find
entity Q48525
relation P17
type Q15617994
That government is situated in [ANSWER]
['Q48525', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q48525 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
United States of America
That government is situated in United States of America
United States of America
action filter_type
action find
entity Federal Government of the United States
relation country
type designation for an administrative territorial entity
['Federal Government of the United States', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Federal_Government_of_the_United_States property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]