Simple Question (Direct)
Simple Question
Q505900
P27
Q15617994
USER
Which administrative territory is Andrew Lawrence an inhabitant of ?
(Q505900,P27,c(Q15617994))
action filter_type
action find
entity Q505900
relation P27
type Q15617994
['Q505900', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q505900 property:P27 ?k }
Andrew Lawrence
action filter_type
action find
entity Andrew Lawrence
relation country of citizenship
type designation for an administrative territorial entity
['Andrew Lawrence', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Andrew_Lawrence property:country_of_citizenship ?k }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q505900,P27,c(Q15617994))
action filter_type
action find
entity Q505900
relation P27
type Q15617994
The [ANSWER] is Andrew Lawrence an inhabitant of
['Q505900', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q505900 property:P27 ?k }
United States of America
The United States of America is Andrew Lawrence an inhabitant of
United States of America
action filter_type
action find
entity Andrew Lawrence
relation country of citizenship
type designation for an administrative territorial entity
['Andrew Lawrence', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Andrew_Lawrence property:country_of_citizenship ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q505900
P7
Q502895
USER
Who are siblings of Andrew Lawrence ?
(c(Q502895),P7,Q505900)
action filter_type
action find
entity Q505900
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q505900']
SELECT DISTINCT ?i WHERE { resource:Q505900 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Andrew Lawrence
action filter_type
action find
entity Andrew Lawrence
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Andrew Lawrence']
SELECT DISTINCT ?i WHERE { resource:Andrew_Lawrence property:brother ?i . ?i rdf:type ontology:common_name }
[]
common name
Q471143 Q550395
SYSTEM
Matthew Lawrence, Joey Lawrence
Q471143 Q550395
(c(Q502895),P7,Q505900)
action filter_type
action find
entity Q505900
relation P7
type Q502895
Siblings of Andrew Lawrence are of [ANSWERS]
[{'concept': 'Q502895'}, 'P7', 'Q505900']
SELECT DISTINCT ?i WHERE { resource:Q505900 property:P7 ?i . ?i rdf:type ontology:Q502895 }
Matthew Lawrence Joey Lawrence
Siblings of Andrew Lawrence are of Matthew Lawrence and Joey Lawrence
Matthew Lawrence Joey Lawrence
action filter_type
action find
entity Andrew Lawrence
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Andrew Lawrence']
SELECT DISTINCT ?i WHERE { resource:Andrew_Lawrence property:brother ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q505900
P161
Q838948
USER
Which works of art stars Andrew Lawrence as actor ?
(c(Q838948),P161,Q505900)
action filter_type
action find_reverse
entity Q505900
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q505900']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q838948 . ?y property:P161 resource:Q505900 }
Andrew Lawrence
action filter_type
action find_reverse
entity Andrew Lawrence
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Andrew Lawrence']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:work_of_art . ?y property:cast_member resource:Andrew_Lawrence }
[]
work of art
Q752103 Q969270 Q1286551
SYSTEM
Bean, Recess: School's Out, Jack Frost
Q920091 Q969270 Q1286551 Q752103
(c(Q838948),P161,Q505900)
action filter_type
action find_reverse
entity Q505900
relation P161
type Q838948
[ANSWERS] star Andrew Lawrence as actor
[{'concept': 'Q838948'}, 'P161', 'Q505900']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q838948 . ?y property:P161 resource:Q505900 }
Fingerprints Recess: School's Out Jack Frost Bean
Bean, Recess: School's Out and Jack Frost star Andrew Lawrence as actor
Bean Recess: School's Out Jack Frost
action filter_type
action find_reverse
entity Andrew Lawrence
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Andrew Lawrence']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:work_of_art . ?y property:cast_member resource:Andrew_Lawrence }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q505900
P734
Q82799
USER
Who has the surname Andrew Lawrence ?
(Q505900,P734,c(Q82799))
action filter_type
action find
entity Q505900
relation P734
type Q82799
['Q505900', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q505900 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Andrew Lawrence
action filter_type
action find
entity Andrew Lawrence
relation family name
type name
['Andrew Lawrence', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Andrew_Lawrence property:family_name ?h . ?h rdf:type ontology:name }
[]
name
Q1544163
SYSTEM
Lawrence
Q1544163
(Q505900,P734,c(Q82799))
action filter_type
action find
entity Q505900
relation P734
type Q82799
[ANSWER] has the surname Andrew [ANSWER]
['Q505900', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q505900 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Lawrence
Lawrence has the surname Andrew Lawrence
Lawrence
action filter_type
action find
entity Andrew Lawrence
relation family name
type name
['Andrew Lawrence', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Andrew_Lawrence property:family_name ?h . ?h rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1544163 Q8785 Q56690
P407
Q34770
USER
Is that name composed in Armenian and Busa language ?
(Q1544163,P407,Q8785) (Q1544163,P407,Q56690)
action is_in
entity Q1544163
action intersection
action find_reverse
entity Q8785
relation P407
action find_reverse
entity Q56690
relation P407
['Q1544163', 'P407', 'Q8785'] ['Q1544163', 'P407', 'Q56690']
ASK WHERE { resource:Q1544163 property:P407 resource:Q56690 . resource:Q1544163 property:P407 resource:Q8785 }
Lawrence Armenian Busa language
action is_in
entity Lawrence
action intersection
action find_reverse
entity Armenian
relation language of work or name
action find_reverse
entity Busa language
relation language of work or name
['Lawrence', 'language of work or name', 'Armenian'] ['Lawrence', 'language of work or name', 'Busa language']
ASK WHERE { resource:Lawrence property:language_of_work_or_name resource:Busa_language . resource:Lawrence property:language_of_work_or_name resource:Armenian }
[]
language
SYSTEM
NO
(Q1544163,P407,Q8785) (Q1544163,P407,Q56690)
action is_in
entity Q1544163
action intersection
action find_reverse
entity Q8785
relation P407
action find_reverse
entity Q56690
relation P407
[ANSWER]
['Q1544163', 'P407', 'Q8785'] ['Q1544163', 'P407', 'Q56690']
ASK WHERE { resource:Q1544163 property:P407 resource:Q56690 . resource:Q1544163 property:P407 resource:Q8785 }
No
action is_in
entity Lawrence
action intersection
action find_reverse
entity Armenian
relation language of work or name
action find_reverse
entity Busa language
relation language of work or name
['Lawrence', 'language of work or name', 'Armenian'] ['Lawrence', 'language of work or name', 'Busa language']
ASK WHERE { resource:Lawrence property:language_of_work_or_name resource:Busa_language . resource:Lawrence property:language_of_work_or_name resource:Armenian }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q36
P495
Q15617994 Q201658 Q7725634
USER
How many administrative territories are the countries of origin of lesser number of film genres or literary works than Poland ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q36
relation P495
type Q201658
type Q7725634
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:Q7725634 } UNION { ?o rdf:type ontology:Q201658 } } . ?o property:P495 resource:Q36 } } . FILTER ( ?x < ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?m WHERE { { ?b property:P495 ?m . ?m rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q7725634 } UNION { ?b property:P495 ?m . ?m rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q201658 } } GROUP BY ?m } }
Poland
action count
action less
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 literary work
action count
action filter_multi_types
action find_reverse
entity Poland
relation country of origin
type film genre
type literary work
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:literary_work } UNION { ?o rdf:type ontology:film_genre } } . ?o property:country_of_origin resource:Poland } } . FILTER ( ?x < ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?m WHERE { { ?b property:country_of_origin ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:literary_work } UNION { ?b property:country_of_origin ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:film_genre } } GROUP BY ?m } }
[]
designation for an administrative territorial entity film genre literary work
SYSTEM
148
Q805 Q804 Q801 Q800 Q1462 Q419 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q159 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q928 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q27 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 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 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q36
relation P495
type Q201658
type Q7725634
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:Q7725634 } UNION { ?o rdf:type ontology:Q201658 } } . ?o property:P495 resource:Q36 } } . FILTER ( ?x < ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?m WHERE { { ?b property:P495 ?m . ?m rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q7725634 } UNION { ?b property:P495 ?m . ?m rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q201658 } } GROUP BY ?m } }
Yemen Panama Israel Costa Rica Sardinia Peru 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 Russia Greece El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Philippines 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 Somalia Sierra Leone Senegal Ireland Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein 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 Tuvalu Quebec Tajikistan Thailand Zambia
148
action count
action less
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 literary work
action count
action filter_multi_types
action find_reverse
entity Poland
relation country of origin
type film genre
type literary work
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:literary_work } UNION { ?o rdf:type ontology:film_genre } } . ?o property:country_of_origin resource:Poland } } . FILTER ( ?x < ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?m WHERE { { ?b property:country_of_origin ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:literary_work } UNION { ?b property:country_of_origin ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:film_genre } } GROUP BY ?m } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q27
P495
Q15617994 Q201658 Q7725634
USER
And what about Ireland?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q27
relation P495
type Q201658
type Q7725634
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?c ) WHERE { { ?v property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q201658 } UNION { ?v property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q7725634 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P495 resource:Q27 . { { ?q rdf:type ontology:Q201658 } UNION { ?q rdf:type ontology:Q7725634 } } } } . FILTER ( ?c < ?u ) }
Ireland
action count
action less
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 literary work
action count
action filter_multi_types
action find_reverse
entity Ireland
relation country of origin
type film genre
type literary work
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?c ) WHERE { { ?v property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:film_genre } UNION { ?v property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:literary_work } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:country_of_origin resource:Ireland . { { ?q rdf:type ontology:film_genre } UNION { ?q rdf:type ontology:literary_work } } } } . FILTER ( ?c < ?u ) }
[]
designation for an administrative territorial entity film genre literary work
SYSTEM
143
Q805 Q804 Q801 Q800 Q1462 Q12536 Q262 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q928 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 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 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q27
relation P495
type Q201658
type Q7725634
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?c ) WHERE { { ?v property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q201658 } UNION { ?v property:P495 ?j . ?j rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q7725634 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P495 resource:Q27 . { { ?q rdf:type ontology:Q201658 } UNION { ?q rdf:type ontology:Q7725634 } } } } . FILTER ( ?c < ?u ) }
Yemen Panama Israel Costa Rica Sardinia Abbasid caliphate Algeria Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad Greece El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Philippines 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 Somalia Sierra Leone Senegal Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein 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 Tuvalu Quebec Tajikistan Thailand Zambia
143
action count
action less
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 literary work
action count
action filter_multi_types
action find_reverse
entity Ireland
relation country of origin
type film genre
type literary work
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?c ) WHERE { { ?v property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:film_genre } UNION { ?v property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:literary_work } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:country_of_origin resource:Ireland . { { ?q rdf:type ontology:film_genre } UNION { ?q rdf:type ontology:literary_work } } } } . FILTER ( ?c < ?u ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11614865 Q505900
P106
Q12737077
USER
Which occupations do Andrew Lawrence or Jun'ichi Ashikawa do for a living ?
OR((Q505900,P106,c(Q12737077)), (Q11614865,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q505900
relation P106
action find
entity Q11614865
relation P106
type Q12737077
{'OR': [['Q505900', 'P106', {'concept': 'Q12737077'}], ['Q11614865', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?k ) { ( resource:Q505900 ) ( resource:Q11614865 ) } . ?k property:P106 ?j } . ?j rdf:type ontology:Q12737077 }
Jun'ichi Ashikawa Andrew Lawrence
action filter_type
action union
action find
entity Andrew Lawrence
relation occupation
action find
entity Jun'ichi Ashikawa
relation occupation
type occupation
{'OR': [['Andrew Lawrence', 'occupation', {'concept': 'occupation'}], ["Jun'ichi Ashikawa", 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?k ) { ( resource:Andrew_Lawrence ) ( resource:Jun'ichi_Ashikawa ) } . ?k property:occupation ?j } . ?j rdf:type ontology:occupation }
[]
occupation
Q10798782 Q11481802 Q33999 Q6625963
SYSTEM
television actor, dub actor, actor, novelist
Q10798782 Q11481802 Q33999 Q6625963
OR((Q505900,P106,c(Q12737077)), (Q11614865,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q505900
relation P106
action find
entity Q11614865
relation P106
type Q12737077
[ANSWERS] Andrew Lawrence or Jun'ichi Ashikawa do for a living
{'OR': [['Q505900', 'P106', {'concept': 'Q12737077'}], ['Q11614865', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?k ) { ( resource:Q505900 ) ( resource:Q11614865 ) } . ?k property:P106 ?j } . ?j rdf:type ontology:Q12737077 }
television actor dub actor actor novelist
Television actor, dub actor, actor and novelist Andrew Lawrence or Jun'ichi Ashikawa do for a living
television actor dub actor actor novelist
action filter_type
action union
action find
entity Andrew Lawrence
relation occupation
action find
entity Jun'ichi Ashikawa
relation occupation
type occupation
{'OR': [['Andrew Lawrence', 'occupation', {'concept': 'occupation'}], ["Jun'ichi Ashikawa", 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?k ) { ( resource:Andrew_Lawrence ) ( resource:Jun'ichi_Ashikawa ) } . ?k property:occupation ?j } . ?j rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2232106
P106
Q502895
USER
Do Nigel Planer have those occupations as his/her means of employment ?
(Q2232106,P106,Q10798782) (Q2232106,P106,Q11481802) (Q2232106,P106,Q33999) (Q2232106,P106,Q6625963)
action is_in
entity prev_answer
action find
entity Q2232106
relation P106
['Q2232106', 'P106', 'Q10798782'] ['Q2232106', 'P106', 'Q11481802'] ['Q2232106', 'P106', 'Q33999'] ['Q2232106', 'P106', 'Q6625963']
ASK WHERE { VALUES ( ?v ) { ( resource:Q10798782 ) ( resource:Q11481802 ) ( resource:Q33999 ) } . resource:Q2232106 property:P106 ?v }
Nigel Planer
action is_in
entity prev_answer
action find
entity Nigel Planer
relation occupation
['Nigel Planer', 'occupation', 'television actor'] ['Nigel Planer', 'occupation', 'dub actor'] ['Nigel Planer', 'occupation', 'actor'] ['Nigel Planer', 'occupation', 'novelist']
ASK WHERE { VALUES ( ?v ) { ( resource:television_actor ) ( resource:dub_actor ) ( resource:actor ) } . resource:Nigel_Planer property:occupation ?v }
[]
common name
SYSTEM
YES
(Q2232106,P106,Q10798782) (Q2232106,P106,Q11481802) (Q2232106,P106,Q33999) (Q2232106,P106,Q6625963)
action is_in
entity prev_answer
action find
entity Q2232106
relation P106
[ANSWER]
['Q2232106', 'P106', 'Q10798782'] ['Q2232106', 'P106', 'Q11481802'] ['Q2232106', 'P106', 'Q33999'] ['Q2232106', 'P106', 'Q6625963']
ASK WHERE { VALUES ( ?v ) { ( resource:Q10798782 ) ( resource:Q11481802 ) ( resource:Q33999 ) } . resource:Q2232106 property:P106 ?v }
Yes
action is_in
entity prev_answer
action find
entity Nigel Planer
relation occupation
['Nigel Planer', 'occupation', 'television actor'] ['Nigel Planer', 'occupation', 'dub actor'] ['Nigel Planer', 'occupation', 'actor'] ['Nigel Planer', 'occupation', 'novelist']
ASK WHERE { VALUES ( ?v ) { ( resource:television_actor ) ( resource:dub_actor ) ( resource:actor ) } . resource:Nigel_Planer property:occupation ?v }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1544163 Q7425993 Q1860
P407
Q34770
USER
Does Lawrence used Sateliti and English as language ?
(Q1544163,P407,Q7425993) (Q1544163,P407,Q1860)
action is_in
entity Q1544163
action intersection
action find_reverse
entity Q7425993
relation P407
action find_reverse
entity Q1860
relation P407
['Q1544163', 'P407', 'Q7425993'] ['Q1544163', 'P407', 'Q1860']
ASK WHERE { resource:Q1544163 property:P407 resource:Q7425993 . resource:Q1544163 property:P407 resource:Q1860 }
Lawrence Sateliti English
action is_in
entity Lawrence
action intersection
action find_reverse
entity Sateliti
relation language of work or name
action find_reverse
entity English
relation language of work or name
['Lawrence', 'language of work or name', 'Sateliti'] ['Lawrence', 'language of work or name', 'English']
ASK WHERE { resource:Lawrence property:language_of_work_or_name resource:Sateliti . resource:Lawrence property:language_of_work_or_name resource:English }
[]
language
SYSTEM
NO and YES respectively
(Q1544163,P407,Q7425993) (Q1544163,P407,Q1860)
action is_in
entity Q1544163
action intersection
action find_reverse
entity Q7425993
relation P407
action find_reverse
entity Q1860
relation P407
[ANSWER]
['Q1544163', 'P407', 'Q7425993'] ['Q1544163', 'P407', 'Q1860']
ASK WHERE { resource:Q1544163 property:P407 resource:Q7425993 . resource:Q1544163 property:P407 resource:Q1860 }
NO and YES respectively
action is_in
entity Lawrence
action intersection
action find_reverse
entity Sateliti
relation language of work or name
action find_reverse
entity English
relation language of work or name
['Lawrence', 'language of work or name', 'Sateliti'] ['Lawrence', 'language of work or name', 'English']
ASK WHERE { resource:Lawrence property:language_of_work_or_name resource:Sateliti . resource:Lawrence property:language_of_work_or_name resource:English }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q55 Q30
P463
Q484652
USER
Which international organizations were United States of America and Netherlands a member of ?
AND((Q30,P463,c(Q484652)), (Q55,P463,c(Q484652)))
action filter_type
action intersection
action find
entity Q30
relation P463
action find
entity Q55
relation P463
type Q484652
{'AND': [['Q30', 'P463', {'concept': 'Q484652'}], ['Q55', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?k WHERE { resource:Q30 property:P463 ?k . resource:Q55 property:P463 ?k . ?k rdf:type ontology:Q484652 }
Netherlands United States of America
action filter_type
action intersection
action find
entity United States of America
relation member of
action find
entity Netherlands
relation member of
type international organization
{'AND': [['United States of America', 'member of', {'concept': 'international organization'}], ['Netherlands', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?k WHERE { resource:United_States_of_America property:member_of ?k . resource:Netherlands property:member_of ?k . ?k rdf:type ontology:international_organization }
[]
international organization
Q81299 Q1043527 Q7184 Q188822 Q842490
SYSTEM
Organization for Security and Co-operation in Europe, Multilateral Investment Guarantee Agency, North Atlantic Treaty Organisation, Asian Development Bank, Organisation for the Prohibition of Chemical Weapons
Q81299 Q1043527 Q7184 Q188822 Q842490
AND((Q30,P463,c(Q484652)), (Q55,P463,c(Q484652)))
action filter_type
action intersection
action find
entity Q30
relation P463
action find
entity Q55
relation P463
type Q484652
[ANSWERS] were United States of America and Netherlands a member of
{'AND': [['Q30', 'P463', {'concept': 'Q484652'}], ['Q55', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?k WHERE { resource:Q30 property:P463 ?k . resource:Q55 property:P463 ?k . ?k rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe Multilateral Investment Guarantee Agency North Atlantic Treaty Organisation Asian Development Bank Organisation for the Prohibition of Chemical Weapons
Organization for Security and Co-operation in Europe, Multilateral Investment Guarantee Agency, North Atlantic Treaty Organisation, Asian Development Bank and Organisation for the Prohibition of Chemical Weapons were United States of America and Netherlands a member of
Organization for Security and Co-operation in Europe Multilateral Investment Guarantee Agency North Atlantic Treaty Organisation Asian Development Bank Organisation for the Prohibition of Chemical Weapons
action filter_type
action intersection
action find
entity United States of America
relation member of
action find
entity Netherlands
relation member of
type international organization
{'AND': [['United States of America', 'member of', {'concept': 'international organization'}], ['Netherlands', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?k WHERE { resource:United_States_of_America property:member_of ?k . resource:Netherlands property:member_of ?k . ?k rdf:type ontology:international_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q188822
P159
Q515
USER
Where is the headquarter of that international organization located ?
(Q188822,P159,c(Q515))
action filter_type
action find
entity Q188822
relation P159
type Q515
['Q188822', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q188822 property:P159 ?f . ?f rdf:type ontology:Q515 }
Asian Development Bank
action filter_type
action find
entity Asian Development Bank
relation headquarters location
type city
['Asian Development Bank', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Asian_Development_Bank property:headquarters_location ?f . ?f rdf:type ontology:city }
[]
city
Clarification for simple ques.
Q81299
SYSTEM
Did you mean Organization for Security and Co-operation in Europe ?
Q81299 Q1043527 Q7184 Q188822 Q842490
(Q81299,P159,c(Q515)) (Q1043527,P159,c(Q515)) (Q7184,P159,c(Q515)) (Q188822,P159,c(Q515)) (Q842490,P159,c(Q515))
[ANSWER]
['Q81299', 'P159', {'concept': 'Q515'}] ['Q1043527', 'P159', {'concept': 'Q515'}] ['Q7184', 'P159', {'concept': 'Q515'}] ['Q188822', 'P159', {'concept': 'Q515'}] ['Q842490', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q188822 property:P159 ?f . ?f rdf:type ontology:Q515 }
Organization for Security and Co-operation in Europe Multilateral Investment Guarantee Agency North Atlantic Treaty Organisation Asian Development Bank Organisation for the Prohibition of Chemical Weapons
Did you mean Organization for Security and Co-operation in Europe ?
Organization for Security and Co-operation in Europe
['Organization for Security and Co-operation in Europe', 'headquarters location', {'concept': 'city'}] ['Multilateral Investment Guarantee Agency', 'headquarters location', {'concept': 'city'}] ['North Atlantic Treaty Organisation', 'headquarters location', {'concept': 'city'}] ['Asian Development Bank', 'headquarters location', {'concept': 'city'}] ['Organisation for the Prohibition of Chemical Weapons', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Asian_Development_Bank property:headquarters_location ?f . ?f rdf:type ontology:city }
[]
Simple Question (Coreferenced)
USER
No, I meant Asian Development Bank. Could you tell me the answer for that?
(Q188822,P159,c(Q515))
Q188822
['Q188822', 'P159', {'concept': 'Q515'}]
['Asian Development Bank', 'headquarters location', {'concept': 'city'}]
[]
Q1461
SYSTEM
Manila
Q1461
(Q188822,P159,c(Q515))
action filter_type
action find
entity Q188822
relation P159
type Q515
[ANSWER] is the headquarter of that international organization located
['Q188822', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { resource:Q188822 property:P159 ?f . ?f rdf:type ontology:Q515 }
Manila
Manila is the headquarter of that international organization located
Manila
action filter_type
action find
entity Asian Development Bank
relation headquarters location
type city
['Asian Development Bank', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { resource:Asian_Development_Bank property:headquarters_location ?f . ?f rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1461 Q62 Q1520
P190
Q56061
USER
Is that city twin town of San Francisco and Astana ?
(Q1461,P190,Q62) (Q1461,P190,Q1520)
action is_in
entity Q1461
action intersection
action find_reverse
entity Q62
relation P190
action find_reverse
entity Q1520
relation P190
['Q1461', 'P190', 'Q62'] ['Q1461', 'P190', 'Q1520']
ASK WHERE { resource:Q1461 property:P190 resource:Q62 . resource:Q1461 property:P190 resource:Q1520 }
Manila San Francisco Astana
action is_in
entity Manila
action intersection
action find_reverse
entity San Francisco
relation sister city
action find_reverse
entity Astana
relation sister city
['Manila', 'sister city', 'San Francisco'] ['Manila', 'sister city', 'Astana']
ASK WHERE { resource:Manila property:sister_city resource:San_Francisco . resource:Manila property:sister_city resource:Astana }
[]
administrative territorial entity
SYSTEM
YES
(Q1461,P190,Q62) (Q1461,P190,Q1520)
action is_in
entity Q1461
action intersection
action find_reverse
entity Q62
relation P190
action find_reverse
entity Q1520
relation P190
[ANSWER]
['Q1461', 'P190', 'Q62'] ['Q1461', 'P190', 'Q1520']
ASK WHERE { resource:Q1461 property:P190 resource:Q62 . resource:Q1461 property:P190 resource:Q1520 }
Yes
action is_in
entity Manila
action intersection
action find_reverse
entity San Francisco
relation sister city
action find_reverse
entity Astana
relation sister city
['Manila', 'sister city', 'San Francisco'] ['Manila', 'sister city', 'Astana']
ASK WHERE { resource:Manila property:sister_city resource:San_Francisco . resource:Manila property:sister_city resource:Astana }
[]