Simple Question (Direct)
Simple Question
Q528589
P27
Q15617994
USER
Which administrative territory does Andžela Brice belong to ?
(Q528589,P27,c(Q15617994))
action filter_type
action find
entity Q528589
relation P27
type Q15617994
['Q528589', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q528589 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Andžela Brice
action filter_type
action find
entity Andžela Brice
relation country of citizenship
type designation for an administrative territorial entity
['Andžela Brice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Andžela_Brice property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q211
SYSTEM
Latvia
Q211
(Q528589,P27,c(Q15617994))
action filter_type
action find
entity Q528589
relation P27
type Q15617994
Andžela Brice belongs to [ANSWER]
['Q528589', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q528589 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Latvia
Andžela Brice belongs to Latvia
Latvia
action filter_type
action find
entity Andžela Brice
relation country of citizenship
type designation for an administrative territorial entity
['Andžela Brice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Andžela_Brice property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q211
P6
Q502895
USER
What people are that administrative territory the head of goverment of ?
(Q211,P6,c(Q502895))
action filter_type
action find
entity Q211
relation P6
type Q502895
['Q211', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q211 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Latvia
action filter_type
action find
entity Latvia
relation head of government
type common name
['Latvia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Latvia property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
common name
Q3089345 Q6112509
SYSTEM
Laimdota Straujuma, Māris Kučinskis
Q3089345 Q6112509
(Q211,P6,c(Q502895))
action filter_type
action find
entity Q211
relation P6
type Q502895
[ANSWERS] are that administrative territory the head of goverment of
['Q211', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q211 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Laimdota Straujuma Māris Kučinskis
Laimdota Straujuma and Māris Kučinskis are that administrative territory the head of goverment of
Laimdota Straujuma Māris Kučinskis
action filter_type
action find
entity Latvia
relation head of government
type common name
['Latvia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Latvia property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q211
P47
Q15617994
USER
Which administrative territories share border with that one ?
(c(Q15617994),P47,Q3089345) (c(Q15617994),P47,Q6112509)
action filter_type
action find
entity Q211
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q3089345'] [{'concept': 'Q15617994'}, 'P47', 'Q6112509']
SELECT DISTINCT ?t WHERE { resource:Q211 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Latvia
action filter_type
action find
entity Latvia
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Laimdota Straujuma'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Māris Kučinskis']
SELECT DISTINCT ?t WHERE { resource:Latvia property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q36 Q184
SYSTEM
Russia, Poland, Belarus
Q191 Q159 Q184 Q37 Q36
(c(Q15617994),P47,Q3089345) (c(Q15617994),P47,Q6112509)
action filter_type
action find
entity Q211
relation P47
type Q15617994
[ANSWERS] share border with that one
[{'concept': 'Q15617994'}, 'P47', 'Q3089345'] [{'concept': 'Q15617994'}, 'P47', 'Q6112509']
SELECT DISTINCT ?t WHERE { resource:Q211 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Estonia Russia Belarus Lithuania Poland
Russia, Poland and Belarus share border with that one
Russia Poland Belarus
action filter_type
action find
entity Latvia
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Laimdota Straujuma'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Māris Kučinskis']
SELECT DISTINCT ?t WHERE { resource:Latvia property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5248917
P17
Q573
USER
Are December 14 located in those administrative territories ?
(Q5248917,P17,Q159) (Q5248917,P17,Q36) (Q5248917,P17,Q184)
action is_in
entity prev_answer
action find
entity Q5248917
relation P17
['Q5248917', 'P17', 'Q159'] ['Q5248917', 'P17', 'Q36'] ['Q5248917', 'P17', 'Q184']
ASK WHERE { VALUES ( ?u ) { ( resource:Q191 ) ( resource:Q159 ) ( resource:Q184 ) } . resource:Q5248917 property:P17 ?u }
December 14
action is_in
entity prev_answer
action find
entity December 14
relation country
['December 14', 'country', 'Russia'] ['December 14', 'country', 'Poland'] ['December 14', 'country', 'Belarus']
ASK WHERE { VALUES ( ?u ) { ( resource:Estonia ) ( resource:Russia ) ( resource:Belarus ) } . resource:December_14 property:country ?u }
[]
day
SYSTEM
NO
(Q5248917,P17,Q159) (Q5248917,P17,Q36) (Q5248917,P17,Q184)
action is_in
entity prev_answer
action find
entity Q5248917
relation P17
[ANSWER]
['Q5248917', 'P17', 'Q159'] ['Q5248917', 'P17', 'Q36'] ['Q5248917', 'P17', 'Q184']
ASK WHERE { VALUES ( ?u ) { ( resource:Q191 ) ( resource:Q159 ) ( resource:Q184 ) } . resource:Q5248917 property:P17 ?u }
No
action is_in
entity prev_answer
action find
entity December 14
relation country
['December 14', 'country', 'Russia'] ['December 14', 'country', 'Poland'] ['December 14', 'country', 'Belarus']
ASK WHERE { VALUES ( ?u ) { ( resource:Estonia ) ( resource:Russia ) ( resource:Belarus ) } . resource:December_14 property:country ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P276
Q8065
USER
Which natural disaster is located at Austria ?
(c(Q8065),P276,Q40)
action filter_type
action find_reverse
entity Q40
relation P276
type Q8065
[{'concept': 'Q8065'}, 'P276', 'Q40']
SELECT DISTINCT ?y WHERE { ?y property:P276 resource:Q40 . ?y rdf:type ontology:Q8065 }
Austria
action filter_type
action find_reverse
entity Austria
relation location
type natural disaster
[{'concept': 'natural disaster'}, 'location', 'Austria']
SELECT DISTINCT ?y WHERE { ?y property:location resource:Austria . ?y rdf:type ontology:natural_disaster }
[]
natural disaster
Q24287229
SYSTEM
2016 European floods
Q24287229
(c(Q8065),P276,Q40)
action filter_type
action find_reverse
entity Q40
relation P276
type Q8065
[ANSWER] is located at Austria
[{'concept': 'Q8065'}, 'P276', 'Q40']
SELECT DISTINCT ?y WHERE { ?y property:P276 resource:Q40 . ?y rdf:type ontology:Q8065 }
2016 European floods
2016 European floods is located at Austria
2016 European floods
action filter_type
action find_reverse
entity Austria
relation location
type natural disaster
[{'concept': 'natural disaster'}, 'location', 'Austria']
SELECT DISTINCT ?y WHERE { ?y property:location resource:Austria . ?y rdf:type ontology:natural_disaster }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q574
P495
Q15617994 Q838948 Q2088357
USER
How many administrative territories did greater number of works of art or musical ensembles originate than East Timor ?
(c(Q838948)|c(Q2088357),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q574
relation P495
type Q838948
type Q2088357
[[{'concept': 'Q838948'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) ?t WHERE { { ?z property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P495 ?t . ?z rdf:type ontology:Q2088357 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?t } . FILTER ( ?n > ?j ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k property:P495 resource:Q574 . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } } } }
East Timor
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity East Timor
relation country of origin
type work of art
type musical ensemble
[[{'concept': 'work of art'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) ?t WHERE { { ?z property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:work_of_art } UNION { ?z property:country_of_origin ?t . ?z rdf:type ontology:musical_ensemble . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?t } . FILTER ( ?n > ?j ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k property:country_of_origin resource:East_Timor . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } } } }
[]
designation for an administrative territorial entity work of art musical ensemble
SYSTEM
120
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q265 Q37 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q881 Q826 Q822 Q241 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q854 Q424 Q236 Q230 Q232 Q233 Q20 Q1041 Q27 Q28 Q1027 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q833 Q1009 Q1008 Q836 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1011 Q29 Q863 Q869
(c(Q838948)|c(Q2088357),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q574
relation P495
type Q838948
type Q2088357
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) ?t WHERE { { ?z property:P495 ?t . ?t rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P495 ?t . ?z rdf:type ontology:Q2088357 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?t } . FILTER ( ?n > ?j ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k property:P495 resource:Q574 . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } } } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Uzbekistan Lithuania Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Maldives Lebanon Cuba Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Sri Lanka Cambodia Montenegro Georgia Kazakhstan Malta Norway Senegal Ireland Hungary Mauritius Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Malaysia Cameroon Côte d'Ivoire Myanmar Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Cape Verde Spain Tajikistan Thailand
120
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity East Timor
relation country of origin
type work of art
type musical ensemble
[[{'concept': 'work of art'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) ?t WHERE { { ?z property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:work_of_art } UNION { ?z property:country_of_origin ?t . ?z rdf:type ontology:musical_ensemble . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?t } . FILTER ( ?n > ?j ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k property:country_of_origin resource:East_Timor . { ?k rdf:type ?b . VALUES ( ?b ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q32
P495
Q15617994 Q838948 Q2088357
USER
And what about Luxembourg?
(c(Q838948)|c(Q2088357),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q32
relation P495
type Q838948
type Q2088357
[[{'concept': 'Q838948'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?d WHERE { VALUES ( ?q ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } . ?w rdf:type ?q } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { { ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q2088357 } } . ?y property:P495 resource:Q32 } } . FILTER ( ?p > ?v ) }
Luxembourg
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Luxembourg
relation country of origin
type work of art
type musical ensemble
[[{'concept': 'work of art'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?d WHERE { VALUES ( ?q ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } . ?w rdf:type ?q } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { { ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:musical_ensemble } } . ?y property:country_of_origin resource:Luxembourg } } . FILTER ( ?p > ?v ) }
[]
designation for an administrative territorial entity work of art musical ensemble
SYSTEM
48
Q801 Q668 Q414 Q142 Q55 Q145 Q148 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q794 Q884 Q241 Q33 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q854 Q424 Q20 Q27 Q28 Q189 Q843 Q224 Q96 Q17 Q902 Q1033 Q298 Q213 Q218 Q219 Q833 Q79 Q29 Q869
(c(Q838948)|c(Q2088357),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q32
relation P495
type Q838948
type Q2088357
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?d WHERE { VALUES ( ?q ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } . ?w rdf:type ?q } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { { ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q2088357 } } . ?y property:P495 resource:Q32 } } . FILTER ( ?p > ?v ) }
Israel India Argentina France Netherlands United Kingdom People's Republic of China Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iran South Korea Cuba Finland Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia Sri Lanka Cambodia Norway Ireland Hungary Iceland Pakistan Croatia Mexico Japan Bangladesh Nigeria Chile Czech Republic Romania Bulgaria Malaysia Egypt Spain Thailand
48
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity Luxembourg
relation country of origin
type work of art
type musical ensemble
[[{'concept': 'work of art'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?p ) ?d WHERE { VALUES ( ?q ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } . ?w rdf:type ?q } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?v ) WHERE { { { ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:musical_ensemble } } . ?y property:country_of_origin resource:Luxembourg } } . FILTER ( ?p > ?v ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q232525 Q528589
P26
Q502895
USER
Which people are the spouse of Andžela Brice or Theodelinda ?
OR((c(Q502895),P26,Q528589), (c(Q502895),P26,Q232525))
action filter_type
action union
action find_reverse
entity Q528589
relation P26
action find_reverse
entity Q232525
relation P26
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P26', 'Q528589'], [{'concept': 'Q502895'}, 'P26', 'Q232525']]}
SELECT DISTINCT ?q WHERE { { { ?q property:P26 resource:Q232525 } UNION { ?q property:P26 resource:Q528589 } } . ?q rdf:type ontology:Q502895 }
Theodelinda Andžela Brice
action filter_type
action union
action find_reverse
entity Andžela Brice
relation spouse
action find_reverse
entity Theodelinda
relation spouse
type common name
{'OR': [[{'concept': 'common name'}, 'spouse', 'Andžela Brice'], [{'concept': 'common name'}, 'spouse', 'Theodelinda']]}
SELECT DISTINCT ?q WHERE { { { ?q property:spouse resource:Theodelinda } UNION { ?q property:spouse resource:Andžela_Brice } } . ?q rdf:type ontology:common_name }
[]
common name
Q553313 Q315276 Q313395
SYSTEM
Ilmārs Bricis, Agilulf, Authari
Q553313 Q315276 Q313395
OR((c(Q502895),P26,Q528589), (c(Q502895),P26,Q232525))
action filter_type
action union
action find_reverse
entity Q528589
relation P26
action find_reverse
entity Q232525
relation P26
type Q502895
[ANSWERS] are the spouse of Andžela Brice or Theodelinda
{'OR': [[{'concept': 'Q502895'}, 'P26', 'Q528589'], [{'concept': 'Q502895'}, 'P26', 'Q232525']]}
SELECT DISTINCT ?q WHERE { { { ?q property:P26 resource:Q232525 } UNION { ?q property:P26 resource:Q528589 } } . ?q rdf:type ontology:Q502895 }
Ilmārs Bricis Agilulf Authari
Ilmārs Bricis, Agilulf and Authari are the spouse of Andžela Brice or Theodelinda
Ilmārs Bricis Agilulf Authari
action filter_type
action union
action find_reverse
entity Andžela Brice
relation spouse
action find_reverse
entity Theodelinda
relation spouse
type common name
{'OR': [[{'concept': 'common name'}, 'spouse', 'Andžela Brice'], [{'concept': 'common name'}, 'spouse', 'Theodelinda']]}
SELECT DISTINCT ?q WHERE { { { ?q property:spouse resource:Theodelinda } UNION { ?q property:spouse resource:Andžela_Brice } } . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q159 Q192232
P1376
Q56061
USER
How many administrative territories are the county seat for Russia or Jerusalem District ?
(c(Q56061),P1376,Q159) (c(Q56061),P1376,Q192232)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q192232
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q159'] [{'concept': 'Q56061'}, 'P1376', 'Q192232']
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { ?x property:P1376 resource:Q159 . ?x rdf:type ontology:Q56061 } UNION { ?x property:P1376 resource:Q192232 . ?x rdf:type ontology:Q56061 } }
Russia Jerusalem District
action count
action union
action filter_type
action find_reverse
entity Russia
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Jerusalem District
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Russia'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Jerusalem District']
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { ?x property:capital_of resource:Russia . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?x property:capital_of resource:Jerusalem_District . ?x rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
SYSTEM
2
Q1218 Q649
(c(Q56061),P1376,Q159) (c(Q56061),P1376,Q192232)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q192232
relation P1376
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q159'] [{'concept': 'Q56061'}, 'P1376', 'Q192232']
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { ?x property:P1376 resource:Q159 . ?x rdf:type ontology:Q56061 } UNION { ?x property:P1376 resource:Q192232 . ?x rdf:type ontology:Q56061 } }
Jerusalem Moscow
2
action count
action union
action filter_type
action find_reverse
entity Russia
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Jerusalem District
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Russia'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Jerusalem District']
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { ?x property:capital_of resource:Russia . ?x rdf:type ontology:administrative_territorial_entity } UNION { ?x property:capital_of resource:Jerusalem_District . ?x rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q553313
P22
Q502895
USER
Which person has Ilmārs Bricis as a parent ?
(c(Q502895),P22,Q553313)
action filter_type
action find_reverse
entity Q553313
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q553313']
SELECT DISTINCT ?o WHERE { ?o property:P22 resource:Q553313 . ?o rdf:type ontology:Q502895 }
Ilmārs Bricis
action filter_type
action find_reverse
entity Ilmārs Bricis
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ilmārs Bricis']
SELECT DISTINCT ?o WHERE { ?o property:father resource:Ilmārs_Bricis . ?o rdf:type ontology:common_name }
[]
common name
Q465804
SYSTEM
Anete Brice
Q465804
(c(Q502895),P22,Q553313)
action filter_type
action find_reverse
entity Q553313
relation P22
type Q502895
[ANSWER] has Ilmārs Bricis as a parent
[{'concept': 'Q502895'}, 'P22', 'Q553313']
SELECT DISTINCT ?o WHERE { ?o property:P22 resource:Q553313 . ?o rdf:type ontology:Q502895 }
Anete Brice
Anete Brice has Ilmārs Bricis as a parent
Anete Brice
action filter_type
action find_reverse
entity Ilmārs Bricis
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ilmārs Bricis']
SELECT DISTINCT ?o WHERE { ?o property:father resource:Ilmārs_Bricis . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q465804
P40
Q502895
USER
Whose child are that one ?
(c(Q502895),P40,Q465804)
action filter_type
action find_reverse
entity Q465804
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q465804']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P40 resource:Q465804 }
Anete Brice
action filter_type
action find_reverse
entity Anete Brice
relation child
type common name
[{'concept': 'common name'}, 'child', 'Anete Brice']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:child resource:Anete_Brice }
[]
common name
Q553313 Q528589
SYSTEM
Ilmārs Bricis, Andžela Brice
Q553313 Q528589
(c(Q502895),P40,Q465804)
action filter_type
action find_reverse
entity Q465804
relation P40
type Q502895
[ANSWERS] are that one
[{'concept': 'Q502895'}, 'P40', 'Q465804']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P40 resource:Q465804 }
Ilmārs Bricis Andžela Brice
Ilmārs Bricis and Andžela Brice are that one
Ilmārs Bricis Andžela Brice
action filter_type
action find_reverse
entity Anete Brice
relation child
type common name
[{'concept': 'common name'}, 'child', 'Anete Brice']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:child resource:Anete_Brice }
[]