Simple Question (Direct)
Simple Question
Q5371691
P106
Q12737077
USER
What is the profession of Emiliano Elias Zapata ?
(Q5371691,P106,c(Q12737077))
action filter_type
action find
entity Q5371691
relation P106
type Q12737077
['Q5371691', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q5371691 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Emiliano Elias Zapata
action filter_type
action find
entity Emiliano Elias Zapata
relation occupation
type occupation
['Emiliano Elias Zapata', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Emiliano_Elias_Zapata property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5371691,P106,c(Q12737077))
action filter_type
action find
entity Q5371691
relation P106
type Q12737077
[ANSWER]
['Q5371691', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q5371691 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
association football player
association football player
action filter_type
action find
entity Emiliano Elias Zapata
relation occupation
type occupation
['Emiliano Elias Zapata', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Emiliano_Elias_Zapata property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5371691
P21
Q290
USER
Which sex does that person possess ?
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q5371691
relation P21
type Q290
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q5371691 property:P21 ?p . ?p rdf:type ontology:Q290 }
Emiliano Elias Zapata
action filter_type
action find
entity Emiliano Elias Zapata
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Emiliano_Elias_Zapata property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q5371691
relation P21
type Q290
[ANSWER]
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q5371691 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Emiliano Elias Zapata
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Emiliano_Elias_Zapata property:gender ?p . ?p rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q610944 Q5371691
P21
Q290
USER
And also António Gomes Leal
AND((Q5371691,P21,c(Q290)), (Q610944,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q5371691
relation P21
action find
entity Q610944
relation P21
type Q290
{'AND': [['Q5371691', 'P21', {'concept': 'Q290'}], ['Q610944', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q290 . resource:Q5371691 property:P21 ?f . resource:Q610944 property:P21 ?f }
António Gomes Leal Emiliano Elias Zapata
action filter_type
action intersection
action find
entity Emiliano Elias Zapata
relation gender
action find
entity António Gomes Leal
relation gender
type sex
{'AND': [['Emiliano Elias Zapata', 'gender', {'concept': 'sex'}], ['António Gomes Leal', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sex . resource:Emiliano_Elias_Zapata property:gender ?f . resource:António_Gomes_Leal property:gender ?f }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q5371691,P21,c(Q290)), (Q610944,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q5371691
relation P21
action find
entity Q610944
relation P21
type Q290
[ANSWER]
{'AND': [['Q5371691', 'P21', {'concept': 'Q290'}], ['Q610944', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q290 . resource:Q5371691 property:P21 ?f . resource:Q610944 property:P21 ?f }
male
male
action filter_type
action intersection
action find
entity Emiliano Elias Zapata
relation gender
action find
entity António Gomes Leal
relation gender
type sex
{'AND': [['Emiliano Elias Zapata', 'gender', {'concept': 'sex'}], ['António Gomes Leal', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sex . resource:Emiliano_Elias_Zapata property:gender ?f . resource:António_Gomes_Leal property:gender ?f }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3945949 Q5371691
P27
Q15617994
USER
Which administrative territories are Emiliano Elias Zapata or Salvatore Aversa an inhabitant of ?
OR((Q5371691,P27,c(Q15617994)), (Q3945949,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5371691
relation P27
action find
entity Q3945949
relation P27
type Q15617994
{'OR': [['Q5371691', 'P27', {'concept': 'Q15617994'}], ['Q3945949', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q3945949 property:P27 ?z } UNION { resource:Q5371691 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Salvatore Aversa Emiliano Elias Zapata
action filter_type
action union
action find
entity Emiliano Elias Zapata
relation country of citizenship
action find
entity Salvatore Aversa
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Emiliano Elias Zapata', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Salvatore Aversa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Salvatore_Aversa property:country_of_citizenship ?z } UNION { resource:Emiliano_Elias_Zapata property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q414
SYSTEM
Italy, Argentina
Q38 Q414
OR((Q5371691,P27,c(Q15617994)), (Q3945949,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5371691
relation P27
action find
entity Q3945949
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q5371691', 'P27', {'concept': 'Q15617994'}], ['Q3945949', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q3945949 property:P27 ?z } UNION { resource:Q5371691 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Italy Argentina
Italy Argentina
action filter_type
action union
action find
entity Emiliano Elias Zapata
relation country of citizenship
action find
entity Salvatore Aversa
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Emiliano Elias Zapata', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Salvatore Aversa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Salvatore_Aversa property:country_of_citizenship ?z } UNION { resource:Emiliano_Elias_Zapata property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q7725634
USER
Which administrative territories did approximately the same number of works of art or literary works originate as that administrative territory ?
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
designation for an administrative territorial entity work of art literary work
Comparative|More/Less|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Did you mean Italy ?
Italy
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (All)
USER
No, I meant Argentina. Could you tell me the answer for that?
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
Q414
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q155 Q230 Q159
SYSTEM
Brazil, Georgia, Russia
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Brazil Georgia Russia
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q688727
P530
Q15617994
USER
Do Preetz have ambassadorial relations with those ones ?
(Q688727,P530,Q155) (Q688727,P530,Q230) (Q688727,P530,Q159)
action is_in
entity prev_answer
action find
entity Q688727
relation P530
['Q688727', 'P530', 'Q155'] ['Q688727', 'P530', 'Q230'] ['Q688727', 'P530', 'Q159']
ASK WHERE { VALUES ( ?i ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q688727 property:P530 ?i }
Preetz
action is_in
entity prev_answer
action find
entity Preetz
relation diplomatic relation
['Preetz', 'diplomatic relation', 'Brazil'] ['Preetz', 'diplomatic relation', 'Georgia'] ['Preetz', 'diplomatic relation', 'Russia']
ASK WHERE { VALUES ( ?i ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . resource:Preetz property:diplomatic_relation ?i }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q688727,P530,Q155) (Q688727,P530,Q230) (Q688727,P530,Q159)
action is_in
entity prev_answer
action find
entity Q688727
relation P530
[ANSWER]
['Q688727', 'P530', 'Q155'] ['Q688727', 'P530', 'Q230'] ['Q688727', 'P530', 'Q159']
ASK WHERE { VALUES ( ?i ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q688727 property:P530 ?i }
No
action is_in
entity prev_answer
action find
entity Preetz
relation diplomatic relation
['Preetz', 'diplomatic relation', 'Brazil'] ['Preetz', 'diplomatic relation', 'Georgia'] ['Preetz', 'diplomatic relation', 'Russia']
ASK WHERE { VALUES ( ?i ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . resource:Preetz property:diplomatic_relation ?i }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1044
P1376
Q15617994 Q486972 Q20667921
USER
Which administrative territories have greater number of human settlements or french administrative divisions as their county seat than Sierra Leone ?
(c(Q486972)|c(Q20667921),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q1044
relation P1376
type Q486972
type Q20667921
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?o WHERE { { ?y property:P1376 ?o . ?o rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q486972 } UNION { ?y property:P1376 ?o . ?o rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q20667921 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P1376 resource:Q1044 . { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } } } } . FILTER ( ?a > ?i ) }
Sierra Leone
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Sierra Leone
relation capital of
type human settlement
type type of french administrative division
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?o WHERE { { ?y property:capital_of ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:human_settlement } UNION { ?y property:capital_of ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:capital_of resource:Sierra_Leone . { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } } } } . FILTER ( ?a > ?i ) }
[]
designation for an administrative territorial entity human settlement type of french administrative division
Q965 Q12753 Q12584
SYSTEM
Burkina Faso, Seine-et-Marne, Maine-et-Loire
Q12631 Q3368 Q1111401 Q2998020 Q3044731 Q12689 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q12574 Q12798 Q12792 Q12700 Q12703 Q12709 Q12569 Q12642 Q3216 Q3194 Q541589 Q12804 Q12808 Q3326 Q3286 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q12789 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q492437 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12730 Q12736 Q12657 Q12652 Q12556 Q12816 Q3353 Q3357 Q492430 Q3278 Q3184 Q2900529 Q12772 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q965 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q12761 Q12765 Q3334 Q12572 Q12576 Q12578 Q12679 Q3113 Q12758 Q12753 Q12751 Q12564
(c(Q486972)|c(Q20667921),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_multi_types
action find_reverse
entity Q1044
relation P1376
type Q486972
type Q20667921
[ANSWERS]
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?o WHERE { { ?y property:P1376 ?o . ?o rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q486972 } UNION { ?y property:P1376 ?o . ?o rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q20667921 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P1376 resource:Q1044 . { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } } } } . FILTER ( ?a > ?i ) }
Meuse Essonne Kispest District Corse Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Loiret Vendée Vaucluse Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Morbihan Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Corrèze Cher Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Var Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Bouches-du-Weser Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Haute-Saône Saône-et-Loire Nièvre Moselle Indre-et-Loire Yonne Creuse Dordogne Bouches-de-l'Elbe Charente-Maritime Ariège Bezirk Lothringen Tarn Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Burkina Faso Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot Lot-et-Garonne Orne Allier Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Burkina Faso Seine-et-Marne Maine-et-Loire
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Sierra Leone
relation capital of
type human settlement
type type of french administrative division
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?o WHERE { { ?y property:capital_of ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:human_settlement } UNION { ?y property:capital_of ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:capital_of resource:Sierra_Leone . { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } } } } . FILTER ( ?a > ?i ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q12753
P1071
Q3546121
USER
Which type of cheese has that administrative territory as its terminal assembly location ?
(c(Q3546121),P1071,Q12753)
action filter_type
action find_reverse
entity Q12753
relation P1071
type Q3546121
[{'concept': 'Q3546121'}, 'P1071', 'Q12753']
SELECT DISTINCT ?y WHERE { ?y property:P1071 resource:Q12753 . ?y rdf:type ontology:Q3546121 }
Seine-et-Marne
action filter_type
action find_reverse
entity Seine-et-Marne
relation location of final assembly
type type of cheese
[{'concept': 'type of cheese'}, 'location of final assembly', 'Seine-et-Marne']
SELECT DISTINCT ?y WHERE { ?y property:location_of_final_assembly resource:Seine-et-Marne . ?y rdf:type ontology:type_of_cheese }
[]
type of cheese
Clarification for simple ques.
Q12753
SYSTEM
Did you mean Seine-et-Marne ?
Q965 Q12753 Q12584
(c(Q3546121),P1071,Q965) (c(Q3546121),P1071,Q12753) (c(Q3546121),P1071,Q12584)
[ANSWER]
[{'concept': 'Q3546121'}, 'P1071', 'Q965'] [{'concept': 'Q3546121'}, 'P1071', 'Q12753'] [{'concept': 'Q3546121'}, 'P1071', 'Q12584']
SELECT DISTINCT ?y WHERE { ?y property:P1071 resource:Q12753 . ?y rdf:type ontology:Q3546121 }
Burkina Faso Seine-et-Marne Maine-et-Loire
Did you mean Seine-et-Marne ?
Seine-et-Marne
[{'concept': 'type of cheese'}, 'location of final assembly', 'Burkina Faso'] [{'concept': 'type of cheese'}, 'location of final assembly', 'Seine-et-Marne'] [{'concept': 'type of cheese'}, 'location of final assembly', 'Maine-et-Loire']
SELECT DISTINCT ?y WHERE { ?y property:location_of_final_assembly resource:Seine-et-Marne . ?y rdf:type ontology:type_of_cheese }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q3546121),P1071,Q12753)
[{'concept': 'Q3546121'}, 'P1071', 'Q12753']
[{'concept': 'type of cheese'}, 'location of final assembly', 'Seine-et-Marne']
[]
Q20750784
SYSTEM
Fougerus
Q20750784
(c(Q3546121),P1071,Q12753)
action filter_type
action find_reverse
entity Q12753
relation P1071
type Q3546121
[ANSWER]
[{'concept': 'Q3546121'}, 'P1071', 'Q12753']
SELECT DISTINCT ?y WHERE { ?y property:P1071 resource:Q12753 . ?y rdf:type ontology:Q3546121 }
Fougerus
Fougerus
action filter_type
action find_reverse
entity Seine-et-Marne
relation location of final assembly
type type of cheese
[{'concept': 'type of cheese'}, 'location of final assembly', 'Seine-et-Marne']
SELECT DISTINCT ?y WHERE { ?y property:location_of_final_assembly resource:Seine-et-Marne . ?y rdf:type ontology:type_of_cheese }
[]