Simple Question (Direct)
Simple Question
Q459045
P136
Q151885
USER
What can be considered as category for Kristin Asbjørnsen ?
(Q459045,P136,c(Q151885))
action filter_type
action find
entity Q459045
relation P136
type Q151885
['Q459045', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { resource:Q459045 property:P136 ?l . ?l rdf:type ontology:Q151885 }
Kristin Asbjørnsen
action filter_type
action find
entity Kristin Asbjørnsen
relation genre
type concept
['Kristin Asbjørnsen', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { resource:Kristin_Asbjørnsen property:genre ?l . ?l rdf:type ontology:concept }
[]
concept
Q11399
SYSTEM
rock music
Q11399
(Q459045,P136,c(Q151885))
action filter_type
action find
entity Q459045
relation P136
type Q151885
[ANSWER] can be considered as category for Kristin Asbjørnsen
['Q459045', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { resource:Q459045 property:P136 ?l . ?l rdf:type ontology:Q151885 }
rock music
Rock music can be considered as category for Kristin Asbjørnsen
rock music
action filter_type
action find
entity Kristin Asbjørnsen
relation genre
type concept
['Kristin Asbjørnsen', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { resource:Kristin_Asbjørnsen property:genre ?l . ?l rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q459045
P106
Q12737077
USER
What are the professions of that person ?
(Q11399,P106,c(Q12737077))
action filter_type
action find
entity Q459045
relation P106
type Q12737077
['Q11399', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q459045 property:P106 ?d }
Kristin Asbjørnsen
action filter_type
action find
entity Kristin Asbjørnsen
relation occupation
type occupation
['rock music', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Kristin_Asbjørnsen property:occupation ?d }
[]
occupation
Q15981151 Q36834 Q177220
SYSTEM
jazz musician, composer, singer
Q15981151 Q36834 Q177220
(Q11399,P106,c(Q12737077))
action filter_type
action find
entity Q459045
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q11399', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q459045 property:P106 ?d }
jazz musician composer singer
The professions of that person are jazz musician, composer and singer
jazz musician composer singer
action filter_type
action find
entity Kristin Asbjørnsen
relation occupation
type occupation
['rock music', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Kristin_Asbjørnsen property:occupation ?d }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8963054 Q459045
P27
Q15617994
USER
Which administrative territories do Kristin Asbjørnsen or Fumio Maekawa belong to ?
OR((Q459045,P27,c(Q15617994)), (Q8963054,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q459045
relation P27
action find
entity Q8963054
relation P27
type Q15617994
{'OR': [['Q459045', 'P27', {'concept': 'Q15617994'}], ['Q8963054', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q459045 property:P27 ?c } UNION { resource:Q8963054 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Fumio Maekawa Kristin Asbjørnsen
action filter_type
action union
action find
entity Kristin Asbjørnsen
relation country of citizenship
action find
entity Fumio Maekawa
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kristin Asbjørnsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fumio Maekawa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Kristin_Asbjørnsen property:country_of_citizenship ?c } UNION { resource:Fumio_Maekawa property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q17
SYSTEM
Norway, Japan
Q20 Q17
OR((Q459045,P27,c(Q15617994)), (Q8963054,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q459045
relation P27
action find
entity Q8963054
relation P27
type Q15617994
Kristin Asbjørnsen or Fumio Maekawa belong to the [ANSWERS]
{'OR': [['Q459045', 'P27', {'concept': 'Q15617994'}], ['Q8963054', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q459045 property:P27 ?c } UNION { resource:Q8963054 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Norway Japan
Kristin Asbjørnsen or Fumio Maekawa belong to the Norway and Japan
Norway Japan
action filter_type
action union
action find
entity Kristin Asbjørnsen
relation country of citizenship
action find
entity Fumio Maekawa
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kristin Asbjørnsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fumio Maekawa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Kristin_Asbjørnsen property:country_of_citizenship ?c } UNION { resource:Fumio_Maekawa property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with around 5 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 5
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?k ) WHERE { ?e property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?k = 5 ) }
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?k ) WHERE { ?e property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?k = 5 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 5
[ANSWERS] have diplomatic relationships with around 5 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?k ) WHERE { ?e property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?k = 5 ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia 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 Nauru Chile Palau 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 Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland have diplomatic relationships with around 5 administrative territories
Georgia Netherlands Poland
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?k ) WHERE { ?e property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?k = 5 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6703117
P530
Q15617994
USER
Do Lumberton Independent School District have diplomatic associations with those ones ?
(Q6703117,P530,Q230) (Q6703117,P530,Q55) (Q6703117,P530,Q36)
action is_in
entity prev_answer
action find
entity Q6703117
relation P530
['Q6703117', 'P530', 'Q230'] ['Q6703117', 'P530', 'Q55'] ['Q6703117', 'P530', 'Q36']
ASK WHERE { resource:Q6703117 property:P530 ?w . VALUES ( ?w ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q800 ) } }
Lumberton Independent School District
action is_in
entity prev_answer
action find
entity Lumberton Independent School District
relation diplomatic relation
['Lumberton Independent School District', 'diplomatic relation', 'Georgia'] ['Lumberton Independent School District', 'diplomatic relation', 'Netherlands'] ['Lumberton Independent School District', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Lumberton_Independent_School_District property:diplomatic_relation ?w . VALUES ( ?w ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Costa_Rica ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q6703117,P530,Q230) (Q6703117,P530,Q55) (Q6703117,P530,Q36)
action is_in
entity prev_answer
action find
entity Q6703117
relation P530
[ANSWER]
['Q6703117', 'P530', 'Q230'] ['Q6703117', 'P530', 'Q55'] ['Q6703117', 'P530', 'Q36']
ASK WHERE { resource:Q6703117 property:P530 ?w . VALUES ( ?w ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q800 ) } }
No
action is_in
entity prev_answer
action find
entity Lumberton Independent School District
relation diplomatic relation
['Lumberton Independent School District', 'diplomatic relation', 'Georgia'] ['Lumberton Independent School District', 'diplomatic relation', 'Netherlands'] ['Lumberton Independent School District', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Lumberton_Independent_School_District property:diplomatic_relation ?w . VALUES ( ?w ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Costa_Rica ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q55 Q1764511 Q472311
P463
Q484652
USER
Is Netherlands a member of G7 and International Organization for Migration ?
(Q55,P463,Q1764511) (Q55,P463,Q472311)
action is_in
entity Q55
action intersection
action find_reverse
entity Q1764511
relation P463
action find_reverse
entity Q472311
relation P463
['Q55', 'P463', 'Q1764511'] ['Q55', 'P463', 'Q472311']
ASK WHERE { resource:Q55 property:P463 resource:Q1764511 . resource:Q55 property:P463 resource:Q472311 }
Netherlands G7 International Organization for Migration
action is_in
entity Netherlands
action intersection
action find_reverse
entity G7
relation member of
action find_reverse
entity International Organization for Migration
relation member of
['Netherlands', 'member of', 'G7'] ['Netherlands', 'member of', 'International Organization for Migration']
ASK WHERE { resource:Netherlands property:member_of resource:G7 . resource:Netherlands property:member_of resource:International_Organization_for_Migration }
[]
international organization
SYSTEM
NO and YES respectively
(Q55,P463,Q1764511) (Q55,P463,Q472311)
action is_in
entity Q55
action intersection
action find_reverse
entity Q1764511
relation P463
action find_reverse
entity Q472311
relation P463
[ANSWER]
['Q55', 'P463', 'Q1764511'] ['Q55', 'P463', 'Q472311']
ASK WHERE { resource:Q55 property:P463 resource:Q1764511 . resource:Q55 property:P463 resource:Q472311 }
NO and YES respectively
action is_in
entity Netherlands
action intersection
action find_reverse
entity G7
relation member of
action find_reverse
entity International Organization for Migration
relation member of
['Netherlands', 'member of', 'G7'] ['Netherlands', 'member of', 'International Organization for Migration']
ASK WHERE { resource:Netherlands property:member_of resource:G7 . resource:Netherlands property:member_of resource:International_Organization_for_Migration }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q55
P740
Q874405
USER
Which social group originated at that administrative territory ?
action filter_type
action find_reverse
entity Q55
relation P740
type Q874405
SELECT DISTINCT ?o WHERE { ?o property:P740 resource:Q55 . ?o rdf:type ontology:Q874405 }
Netherlands
action filter_type
action find_reverse
entity Netherlands
relation location of formation
type social group
SELECT DISTINCT ?o WHERE { ?o property:location_of_formation resource:Netherlands . ?o rdf:type ontology:social_group }
[]
social group
Q2101358
SYSTEM
World Population Foundation
Q2101358
action filter_type
action find_reverse
entity Q55
relation P740
type Q874405
[ANSWER] originated at that administrative territory
SELECT DISTINCT ?o WHERE { ?o property:P740 resource:Q55 . ?o rdf:type ontology:Q874405 }
World Population Foundation
World Population Foundation originated at that administrative territory
World Population Foundation
action filter_type
action find_reverse
entity Netherlands
relation location of formation
type social group
SELECT DISTINCT ?o WHERE { ?o property:location_of_formation resource:Netherlands . ?o rdf:type ontology:social_group }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2101358 Q55
P740
Q15617994
USER
Is Netherlands the location of formation of that social group ?
(Q2101358,P740,Q55)
action is_in
entity Q55
action find
entity Q2101358
relation P740
['Q2101358', 'P740', 'Q55']
ASK WHERE { resource:Q2101358 property:P740 resource:Q55 }
World Population Foundation Netherlands
action is_in
entity Netherlands
action find
entity World Population Foundation
relation location of formation
['World Population Foundation', 'location of formation', 'Netherlands']
ASK WHERE { resource:World_Population_Foundation property:location_of_formation resource:Netherlands }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q2101358,P740,Q55)
action is_in
entity Q55
action find
entity Q2101358
relation P740
[ANSWER]
['Q2101358', 'P740', 'Q55']
ASK WHERE { resource:Q2101358 property:P740 resource:Q55 }
Yes
action is_in
entity Netherlands
action find
entity World Population Foundation
relation location of formation
['World Population Foundation', 'location of formation', 'Netherlands']
ASK WHERE { resource:World_Population_Foundation property:location_of_formation resource:Netherlands }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2101358
P101
Q151885
USER
Which concept is the area of that social group ?
action filter_type
action find
entity Q2101358
relation P101
type Q151885
SELECT DISTINCT ?h WHERE { resource:Q2101358 property:P101 ?h . ?h rdf:type ontology:Q151885 }
World Population Foundation
action filter_type
action find
entity World Population Foundation
relation field of work
type concept
SELECT DISTINCT ?h WHERE { resource:World_Population_Foundation property:field_of_work ?h . ?h rdf:type ontology:concept }
[]
concept
Q10294
SYSTEM
poverty
Q10294
action filter_type
action find
entity Q2101358
relation P101
type Q151885
[ANSWER] is the area of that social group
SELECT DISTINCT ?h WHERE { resource:Q2101358 property:P101 ?h . ?h rdf:type ontology:Q151885 }
poverty
Poverty is the area of that social group
poverty
action filter_type
action find
entity World Population Foundation
relation field of work
type concept
SELECT DISTINCT ?h WHERE { resource:World_Population_Foundation property:field_of_work ?h . ?h rdf:type ontology:concept }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q151885 Q21114848 Q43229
USER
How many concepts are the area of around the same number of magazine genres or organizations as that concept ?
(c(Q21114848)|c(Q43229),P101,c(Q151885))
action count
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q151885
type Q21114848
action find_reverse_tuple_counts
relation P101
type Q151885
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q10294
relation P101
type Q21114848
type Q43229
[[{'concept': 'Q21114848'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { FILTER ( ?e = ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { { ?w rdf:type ontology:Q21114848 } UNION { ?w rdf:type ontology:Q43229 } } . ?w property:P101 resource:Q10294 } } . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?e ) WHERE { { ?l property:P101 ?n . ?n rdf:type ontology:Q151885 . ?l rdf:type ontology:Q21114848 } UNION { ?l property:P101 ?n . ?n rdf:type ontology:Q151885 . ?l rdf:type ontology:Q43229 } } GROUP BY ?n } }
action count
action approx
action union
action find_reverse_tuple_counts
relation field of work
type concept
type magazine genre
action find_reverse_tuple_counts
relation field of work
type concept
type organization
action count
action filter_multi_types
action find_reverse
entity poverty
relation field of work
type magazine genre
type organization
[[{'concept': 'magazine genre'}, {'concept': 'organization'}], 'field of work', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { FILTER ( ?e = ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { { ?w rdf:type ontology:magazine_genre } UNION { ?w rdf:type ontology:organization } } . ?w property:field_of_work resource:poverty } } . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?e ) WHERE { { ?l property:field_of_work ?n . ?n rdf:type ontology:concept . ?l rdf:type ontology:magazine_genre } UNION { ?l property:field_of_work ?n . ?n rdf:type ontology:concept . ?l rdf:type ontology:organization } } GROUP BY ?n } }
[]
concept magazine genre organization
SYSTEM
65
Q132438 Q935586 Q26384 Q3281534 Q1080208 Q2474068 Q177571 Q5127848 Q9730 Q43343 Q212944 Q333018 Q131476 Q4204600 Q9778 Q826745 Q5465488 Q6661 Q37073 Q39072 Q674684 Q3014296 Q83270 Q612024 Q847526 Q38848 Q214917 Q860918 Q126236 Q131222 Q212024 Q1198874 Q373342 Q203549 Q908604 Q2389651 Q181043 Q4056436 Q4964182 Q186075 Q192781 Q903820 Q205560 Q467 Q1476215 Q83440 Q855091 Q2066131 Q39680 Q15253558 Q622512 Q10294 Q1065742 Q858517 Q1195695 Q135637 Q8341 Q792542 Q8361 Q1336170 Q396077 Q482980 Q6501221 Q11401 Q3242115
(c(Q21114848)|c(Q43229),P101,c(Q151885))
action count
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q151885
type Q21114848
action find_reverse_tuple_counts
relation P101
type Q151885
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q10294
relation P101
type Q21114848
type Q43229
[ANSWER]
[[{'concept': 'Q21114848'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { FILTER ( ?e = ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { { ?w rdf:type ontology:Q21114848 } UNION { ?w rdf:type ontology:Q43229 } } . ?w property:P101 resource:Q10294 } } . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?e ) WHERE { { ?l property:P101 ?n . ?n rdf:type ontology:Q151885 . ?l rdf:type ontology:Q21114848 } UNION { ?l property:P101 ?n . ?n rdf:type ontology:Q151885 . ?l rdf:type ontology:Q43229 } } GROUP BY ?n } }
black metal Liturgical music do it yourself modern history production theory cosmetology decision theory class classical music contemporary folk music klezmer Common descent graph theory History of Ancient Rome electronic music humanitarian aid food history French cuisine pop music microeconomics Sevdalinka motorcycle racer hard rock contemporary classical music queueing theory heavy metal music playwright Esperantist conquistador information theory Negro spiritual operator theory popular music scientific management social history children's music dissident Bard philosopher contemporary history military history field theory trip hop woman human rights activist country music guitarist sportsperson macroeconomics activist Spanish cuisine poverty religious music cultural history intellectual history chiptune jazz axiomatic system Baroque music Ramsey theory agrarian history author control theory hip hop revolutionary
65
action count
action approx
action union
action find_reverse_tuple_counts
relation field of work
type concept
type magazine genre
action find_reverse_tuple_counts
relation field of work
type concept
type organization
action count
action filter_multi_types
action find_reverse
entity poverty
relation field of work
type magazine genre
type organization
[[{'concept': 'magazine genre'}, {'concept': 'organization'}], 'field of work', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { FILTER ( ?e = ?r ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) WHERE { { { ?w rdf:type ontology:magazine_genre } UNION { ?w rdf:type ontology:organization } } . ?w property:field_of_work resource:poverty } } . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?e ) WHERE { { ?l property:field_of_work ?n . ?n rdf:type ontology:concept . ?l rdf:type ontology:magazine_genre } UNION { ?l property:field_of_work ?n . ?n rdf:type ontology:concept . ?l rdf:type ontology:organization } } GROUP BY ?n } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7568046 Q6703117
P17
Q15617994
USER
Which administrative territories are Lumberton Independent School District or South Norwood Library present in ?
OR((Q6703117,P17,c(Q15617994)), (Q7568046,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6703117
relation P17
action find
entity Q7568046
relation P17
type Q15617994
{'OR': [['Q6703117', 'P17', {'concept': 'Q15617994'}], ['Q7568046', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { VALUES ( ?w ) { ( resource:Q6703117 ) ( resource:Q7568046 ) } . ?w property:P17 ?l } }
South Norwood Library Lumberton Independent School District
action filter_type
action union
action find
entity Lumberton Independent School District
relation country
action find
entity South Norwood Library
relation country
type designation for an administrative territorial entity
{'OR': [['Lumberton Independent School District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['South Norwood Library', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?w ) { ( resource:Lumberton_Independent_School_District ) ( resource:South_Norwood_Library ) } . ?w property:country ?l } }
[]
designation for an administrative territorial entity
Q30 Q145
SYSTEM
United States of America, United Kingdom
Q30 Q145
OR((Q6703117,P17,c(Q15617994)), (Q7568046,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6703117
relation P17
action find
entity Q7568046
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q6703117', 'P17', {'concept': 'Q15617994'}], ['Q7568046', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { VALUES ( ?w ) { ( resource:Q6703117 ) ( resource:Q7568046 ) } . ?w property:P17 ?l } }
United States of America United Kingdom
Which administrative territories are Lumberton Independent School District or South Norwood Library present in
United States of America United Kingdom
action filter_type
action union
action find
entity Lumberton Independent School District
relation country
action find
entity South Norwood Library
relation country
type designation for an administrative territorial entity
{'OR': [['Lumberton Independent School District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['South Norwood Library', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?w ) { ( resource:Lumberton_Independent_School_District ) ( resource:South_Norwood_Library ) } . ?w property:country ?l } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q30 Q145
P530
Q1048835
USER
Who have diplomatic relationships with those administrative territories ?
(Q30,P530,c(Q1048835)) (Q145,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?p ) { ( resource:Q30 ) ( resource:Q145 ) } . ?p property:P530 ?e . ?e rdf:type ontology:Q1048835 }
United States of America United Kingdom
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?p ) { ( resource:United_States_of_America ) ( resource:United_Kingdom ) } . ?p property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q183 Q408
SYSTEM
Australia for 3rd, Germany for 1st, 2nd
Q183 Q408 Q16 Q183 Q408 Q16
(Q30,P530,c(Q1048835)) (Q145,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
[ANSWERS]
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?p ) { ( resource:Q30 ) ( resource:Q145 ) } . ?p property:P530 ?e . ?e rdf:type ontology:Q1048835 }
Germany Australia Canada Germany Australia Canada
Germany, Germany and Australia have diplomatic relationships with those administrative territories
Germany Germany Australia
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?p ) { ( resource:United_States_of_America ) ( resource:United_Kingdom ) } . ?p property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity }
[]