Simple Question (Direct)
Simple Question
Q6220267
P21
Q290
USER
What is the sex of John Bailey ?
(Q6220267,P21,c(Q290))
action filter_type
action find
entity Q6220267
relation P21
type Q290
['Q6220267', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q6220267 property:P21 ?d . ?d rdf:type ontology:Q290 }
John Bailey
action filter_type
action find
entity John Bailey
relation gender
type sex
['John Bailey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:John_Bailey property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6220267,P21,c(Q290))
action filter_type
action find
entity Q6220267
relation P21
type Q290
The sex of John Bailey is a [ANSWER]
['Q6220267', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q6220267 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
The sex of John Bailey is a male
male
action filter_type
action find
entity John Bailey
relation gender
type sex
['John Bailey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:John_Bailey property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6220267
P39
Q12737077
USER
Which occupation was a position for which John Bailey was appointed ?
(Q6220267,P39,c(Q12737077))
action filter_type
action find
entity Q6220267
relation P39
type Q12737077
['Q6220267', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q6220267 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
John Bailey
action filter_type
action find
entity John Bailey
relation position held
type occupation
['John Bailey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:John_Bailey property:position_held ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q19202748
SYSTEM
Member of the New South Wales Legislative Assembly
Q19202748
(Q6220267,P39,c(Q12737077))
action filter_type
action find
entity Q6220267
relation P39
type Q12737077
The [ANSWER] was a position for which John Bailey was appointed
['Q6220267', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q6220267 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
Member of the New South Wales Legislative Assembly
The Member of the New South Wales Legislative Assembly was a position for which John Bailey was appointed
Member of the New South Wales Legislative Assembly
action filter_type
action find
entity John Bailey
relation position held
type occupation
['John Bailey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:John_Bailey property:position_held ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6220267
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q19202748,P102,c(Q7210356))
action filter_type
action find
entity Q6220267
relation P102
type Q7210356
['Q19202748', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q6220267 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
John Bailey
action filter_type
action find
entity John Bailey
relation member of political party
type political organization
['Member of the New South Wales Legislative Assembly', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:John_Bailey property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
political organization
Q216082
SYSTEM
Australian Labor Party
Q216082
(Q19202748,P102,c(Q7210356))
action filter_type
action find
entity Q6220267
relation P102
type Q7210356
Australia [ANSWER] is that person a member of
['Q19202748', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?y WHERE { resource:Q6220267 property:P102 ?y . ?y rdf:type ontology:Q7210356 }
Australian Labor Party
Australia Australian Labor Party is that person a member of
Australian Labor Party
action filter_type
action find
entity John Bailey
relation member of political party
type political organization
['Member of the New South Wales Legislative Assembly', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?y WHERE { resource:John_Bailey property:member_of_political_party ?y . ?y rdf:type ontology:political_organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q7210356 Q43229 Q12737077
USER
How many political organizations are more number of organizations or occupations a portion of than that political organization ?
(c(Q43229)|c(Q12737077),P361,c(Q7210356))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q7210356
type Q43229
action find_reverse_tuple_counts
relation P361
type Q7210356
type Q12737077
action count
action filter_multi_types
action find_reverse
entity Q216082
relation P361
type Q43229
type Q12737077
[[{'concept': 'Q43229'}, {'concept': 'Q12737077'}], 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?h ) WHERE { VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q12737077 ) } . ?i rdf:type ?p } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P361 resource:Q216082 . { { ?d rdf:type ontology:Q43229 } UNION { ?d rdf:type ontology:Q12737077 } } } } . FILTER ( ?h > ?o ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type political organization
type organization
action find_reverse_tuple_counts
relation part of
type political organization
type occupation
action count
action filter_multi_types
action find_reverse
entity Australian Labor Party
relation part of
type organization
type occupation
[[{'concept': 'organization'}, {'concept': 'occupation'}], 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?h ) WHERE { VALUES ( ?p ) { ( ontology:organization ) ( ontology:occupation ) } . ?i rdf:type ?p } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:part_of resource:Australian_Labor_Party . { { ?d rdf:type ontology:organization } UNION { ?d rdf:type ontology:occupation } } } } . FILTER ( ?h > ?o ) }
[]
political organization organization occupation
SYSTEM
25
Q1111191 Q29468 Q500190 Q10647 Q212712 Q747910 Q10658 Q9626 Q9624 Q179111 Q31113 Q103748 Q3326811 Q756180 Q504564 Q847263 Q9630 Q622441 Q131692 Q29552 Q10225 Q275441 Q1114836 Q192254 Q3366202
(c(Q43229)|c(Q12737077),P361,c(Q7210356))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q7210356
type Q43229
action find_reverse_tuple_counts
relation P361
type Q7210356
type Q12737077
action count
action filter_multi_types
action find_reverse
entity Q216082
relation P361
type Q43229
type Q12737077
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q12737077'}], 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?h ) WHERE { VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q12737077 ) } . ?i rdf:type ?p } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P361 resource:Q216082 . { { ?d rdf:type ontology:Q43229 } UNION { ?d rdf:type ontology:Q12737077 } } } } . FILTER ( ?h > ?o ) }
Communist Party of Ireland Republican Party Liberal Party UK Independence Party Liberal International Democrats 66 Scottish National Party Conservative Party Liberal Democrats Social Democratic Party of Austria Kuomintang Team Stronach Movement for the Triumph of Democratic Liberties Lao People's Revolutionary Party FRELIMO Socialist Party Labour Party Liberal Party Austrian Freedom Party Democratic Party Indian National Congress Labour Party Puerto Rican Nationalist Party National Liberation Front Communist Party of Canada
25
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type political organization
type organization
action find_reverse_tuple_counts
relation part of
type political organization
type occupation
action count
action filter_multi_types
action find_reverse
entity Australian Labor Party
relation part of
type organization
type occupation
[[{'concept': 'organization'}, {'concept': 'occupation'}], 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?h ) WHERE { VALUES ( ?p ) { ( ontology:organization ) ( ontology:occupation ) } . ?i rdf:type ?p } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:part_of resource:Australian_Labor_Party . { { ?d rdf:type ontology:organization } UNION { ?d rdf:type ontology:occupation } } } } . FILTER ( ?h > ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6220267
P1412
Q34770
USER
Which language can John Bailey read ?
(Q6220267,P1412,c(Q34770))
action filter_type
action find
entity Q6220267
relation P1412
type Q34770
['Q6220267', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q6220267 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
John Bailey
action filter_type
action find
entity John Bailey
relation languages spoken, written or signed
type language
['John Bailey', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:John_Bailey property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6220267,P1412,c(Q34770))
action filter_type
action find
entity Q6220267
relation P1412
type Q34770
John Bailey can read [ANSWER]
['Q6220267', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q6220267 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
English
John Bailey can read English
English
action filter_type
action find
entity John Bailey
relation languages spoken, written or signed
type language
['John Bailey', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:John_Bailey property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P282
Q8192 Q34770
USER
Which languages have writing system as around the same number of writing systems as that language ?
(c(Q34770),P282,c(Q8192))
action approx
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_type
action find
entity Q1860
relation P282
type Q34770
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?u ) WHERE { ?i property:P282 ?v . ?v rdf:type ontology:Q8192 . ?i rdf:type ontology:Q34770 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q1860 property:P282 ?n . ?n rdf:type ontology:Q34770 } } . FILTER ( ?u = ?c ) }
action approx
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_type
action find
entity English
relation writing system
type language
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?u ) WHERE { ?i property:writing_system ?v . ?v rdf:type ontology:writing_system . ?i rdf:type ontology:language } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:English property:writing_system ?n . ?n rdf:type ontology:language } } . FILTER ( ?u = ?c ) }
[]
writing system language
Q29572 Q1860 Q447117
SYSTEM
Avestan, English, Old Egyptian
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q13211 Q36741 Q35499 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q8192))
action approx
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_type
action find
entity Q1860
relation P282
type Q34770
[ANSWERS] have writing system as around the same number of writing systems as that language
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?u ) WHERE { ?i property:P282 ?v . ?v rdf:type ontology:Q8192 . ?i rdf:type ontology:Q34770 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q1860 property:P282 ?n . ?n rdf:type ontology:Q34770 } } . FILTER ( ?u = ?c ) }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Ruthenian Polabian Old Church Slavonic Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Church Slavonic Traditional Chinese Serbian written in Cyrillic Slavoserbian Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
Avestan, English and Old Egyptian have writing system as around the same number of writing systems as that language
Avestan English Old Egyptian
action approx
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_type
action find
entity English
relation writing system
type language
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?u ) WHERE { ?i property:writing_system ?v . ?v rdf:type ontology:writing_system . ?i rdf:type ontology:language } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:English property:writing_system ?n . ?n rdf:type ontology:language } } . FILTER ( ?u = ?c ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P407
Q34770 Q2031291 Q14795564
USER
Which languages are the languages of work for min number of releases or determinators for date of periodic occurrence ?
(c(Q2031291)|c(Q14795564),P407,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action find_reverse_tuple_counts
relation P407
type Q34770
type Q14795564
[[{'concept': 'Q2031291'}, {'concept': 'Q14795564'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?e ) { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?x ) WHERE { VALUES ( ?u ) { ( ontology:Q2031291 ) ( ontology:Q14795564 ) } . ?k rdf:type ?u } GROUP BY ?y } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?t ) WHERE { { ?p property:P407 ?m . ?p rdf:type ontology:Q14795564 . ?m rdf:type ontology:Q34770 } UNION { ?p property:P407 ?m . ?m rdf:type ontology:Q34770 . ?p rdf:type ontology:Q2031291 } } GROUP BY ?m } . FILTER ( ?t = ?e ) }
action argmin
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action find_reverse_tuple_counts
relation language of work or name
type language
type determinator for date of periodic occurrence
[[{'concept': 'release'}, {'concept': 'determinator for date of periodic occurrence'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?e ) { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?x ) WHERE { VALUES ( ?u ) { ( ontology:release ) ( ontology:determinator_for_date_of_periodic_occurrence ) } . ?k rdf:type ?u } GROUP BY ?y } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?t ) WHERE { { ?p property:language_of_work_or_name ?m . ?p rdf:type ontology:determinator_for_date_of_periodic_occurrence . ?m rdf:type ontology:language } UNION { ?p property:language_of_work_or_name ?m . ?m rdf:type ontology:language . ?p rdf:type ontology:release } } GROUP BY ?m } . FILTER ( ?t = ?e ) }
[]
language release determinator for date of periodic occurrence
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q8752 Q37041 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q2031291)|c(Q14795564),P407,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action find_reverse_tuple_counts
relation P407
type Q34770
type Q14795564
[ANSWERS] are the languages of work for min number of releases or determinators for date of periodic occurrence
[[{'concept': 'Q2031291'}, {'concept': 'Q14795564'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?e ) { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?x ) WHERE { VALUES ( ?u ) { ( ontology:Q2031291 ) ( ontology:Q14795564 ) } . ?k rdf:type ?u } GROUP BY ?y } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?t ) WHERE { { ?p property:P407 ?m . ?p rdf:type ontology:Q14795564 . ?m rdf:type ontology:Q34770 } UNION { ?p property:P407 ?m . ?m rdf:type ontology:Q34770 . ?p rdf:type ontology:Q2031291 } } GROUP BY ?m } . FILTER ( ?t = ?e ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Basque classical Chinese Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for min number of releases or determinators for date of periodic occurrence
Old Egyptian Old Church Slavonic Etruscan
action argmin
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action find_reverse_tuple_counts
relation language of work or name
type language
type determinator for date of periodic occurrence
[[{'concept': 'release'}, {'concept': 'determinator for date of periodic occurrence'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?e ) { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?x ) WHERE { VALUES ( ?u ) { ( ontology:release ) ( ontology:determinator_for_date_of_periodic_occurrence ) } . ?k rdf:type ?u } GROUP BY ?y } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?t ) WHERE { { ?p property:language_of_work_or_name ?m . ?p rdf:type ontology:determinator_for_date_of_periodic_occurrence . ?m rdf:type ontology:language } UNION { ?p property:language_of_work_or_name ?m . ?m rdf:type ontology:language . ?p rdf:type ontology:release } } GROUP BY ?m } . FILTER ( ?t = ?e ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P364
Q34770 Q201658 Q2342494
USER
Which languages are the original languages of creation of lesser number of film genres or collectables than that language ?
(c(Q201658)|c(Q2342494),P364,c(Q34770))
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?p ) { ( ?z ) ( ?x ) } . ?p property:P364 ?y } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q34770 . ?x rdf:type ontology:Q2342494 }
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?p ) { ( ?z ) ( ?x ) } . ?p property:original_language_of_work ?y } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:language . ?x rdf:type ontology:collectable }
[]
language film genre collectable
Comparative|More/Less|Mult. entity type|Clarification
Q35499
SYSTEM
Did you mean Old Church Slavonic ?
(c(Q201658)|c(Q2342494),P364,c(Q34770))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?p ) { ( ?z ) ( ?x ) } . ?p property:P364 ?y } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q34770 . ?x rdf:type ontology:Q2342494 }
Did you mean Old Church Slavonic ?
Old Church Slavonic
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?p ) { ( ?z ) ( ?x ) } . ?p property:original_language_of_work ?y } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:language . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q201658)|c(Q2342494),P364,c(Q34770))
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
[]
Q56530 Q182695 Q35668
SYSTEM
Wappo language, Late Old Japanese, Hittite
Q132659 Q13211 Q35668 Q1072111 Q34909 Q36765 Q35726 Q36206 Q33976 Q10862919 Q56530 Q36790 Q29977 Q182695 Q837985
(c(Q201658)|c(Q2342494),P364,c(Q34770))
[ANSWERS] are the original languages of creation of lesser number of film genres or collectables than that language
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P364 ?y } UNION { ?x property:P364 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q34770 . ?x rdf:type ontology:Q2342494 }
Egyptian hieroglyphs Ruthenian Hittite Galician-Portuguese Old Icelandic Demotic Etruscan Lak Sardinian language Tibetan language Wappo language Sumerian Gaulish Late Old Japanese Middle High German
Wappo language, Late Old Japanese and Hittite are the original languages of creation of lesser number of film genres or collectables than that language
Wappo language Late Old Japanese Hittite
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { { ?z property:original_language_of_work ?y } UNION { ?x property:original_language_of_work ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:language . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1026291
P37
Q34770 Q56061
USER
Which administrative territories designates around the same number of languages as their official language as Kant ?
(c(Q56061),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q56061
type Q34770
action count
action filter_type
action find
entity Q1026291
relation P37
type Q56061
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?r ) WHERE { ?h property:P37 ?j . ?j rdf:type ontology:Q34770 . ?h rdf:type ontology:Q56061 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Q1026291 property:P37 ?w . ?w rdf:type ontology:Q56061 } } . FILTER ( ?r = ?e ) }
Kant
action approx
action find_tuple_counts
relation official language
type administrative territorial entity
type language
action count
action filter_type
action find
entity Kant
relation official language
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?r ) WHERE { ?h property:official_language ?j . ?j rdf:type ontology:language . ?h rdf:type ontology:administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Kant property:official_language ?w . ?w rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?r = ?e ) }
[]
language administrative territorial entity
Q72 Q7172 Q807
SYSTEM
Zürich, Arab League, Lausanne
Q807 Q64004 Q68978 Q689502 Q9125 Q678901 Q66629 Q9009 Q2641849 Q175345 Q68124 Q704257 Q68965 Q757845 Q639054 Q689954 Q689691 Q643200 Q5576202 Q668705 Q69231 Q7149 Q66616 Q54450 Q3834 Q5951348 Q81811 Q669310 Q674433 Q669411 Q70477 Q429962 Q167715 Q669254 Q64011 Q1990899 Q597413 Q390482 Q662499 Q669360 Q678787 Q68883 Q660215 Q7525 Q661369 Q669400 Q4700013 Q121157 Q2094680 Q1352 Q128499 Q69639 Q662405 Q64679 Q70485 Q669466 Q141502 Q3639927 Q666159 Q3951 Q381861 Q69256 Q5689 Q63964 Q156593 Q781354 Q660142 Q572380 Q581562 Q678991 Q869534 Q3702463 Q21669478 Q669375 Q66208 Q659753 Q15077954 Q435231 Q2718721 Q7172 Q689487 Q196357 Q15730054 Q1757 Q669280 Q5999183 Q2492533 Q57110 Q66668 Q541319 Q68160 Q7001862 Q668740 Q2152433 Q183441 Q689499 Q678690 Q21845358 Q1034 Q63931 Q67812 Q669152 Q59117 Q669350 Q67097 Q664153 Q669292 Q3630738 Q289534 Q688652 Q258447 Q1259122 Q669229 Q661817 Q14512466 Q70683 Q669244 Q68103 Q678769 Q669437 Q69484 Q611382 Q69354 Q64123 Q69290 Q25396 Q669424 Q1341 Q78 Q2801411 Q72 Q71 Q70 Q669332 Q277674 Q65757 Q163798 Q65502 Q69940 Q7942521 Q64032 Q198210 Q869624 Q678960 Q1026291 Q68692 Q286332 Q1895
(c(Q56061),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q56061
type Q34770
action count
action filter_type
action find
entity Q1026291
relation P37
type Q56061
[ANSWERS] designate around the same number of languages as their official language as Kant
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?r ) WHERE { ?h property:P37 ?j . ?j rdf:type ontology:Q34770 . ?h rdf:type ontology:Q56061 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Q1026291 property:P37 ?w . ?w rdf:type ontology:Q56061 } } . FILTER ( ?r = ?e ) }
Lausanne Grindelwald Thun Röthenbach bei Herzogenbuchsee Winterthur Colombier Saanen Schaffhausen history of Limousin Thielle-Wavre La Chaux-de-Fonds Albany Solothurn Betma Zhovti Vody Buttes Môtiers Mosen Godavarikhani Montignez Innertkirchen Neudorf Indore Vicques Konstanz Huwyl Gaildorf Balm bei Messen Bettmeralp Niederwil Chézard-Saint-Martin Bibern Thiruvananthapuram Gunzwil Lauterbrunnen Volovița Wildhaus Donatyre Busswil bei Büren Umiken Saint-Saphorin-sur-Morges Villars-Sainte-Croix Hilfikon Sevastopol Steinhof Ittenthal Ak-Dzhar Mashhad Tafersit Chennai Yalta Göschenen Opfertshofen Pratteln Coffrane Oberramsern Oberhofen Bilaspur, Haryana Wanzwil Aalen Aeschlen bei Oberdiessbach Wilderswil Åland Islands Sarnen Sambir Kapurthala Hofen Jizzakh Satara Peney-le-Jorat Wahlern Daqdaqabad Il'inskoe Hottwil Frutigen Albligen Tazaghine Altdorf Phalodi Arab League Buchs Snezhinsk Glarus Helsinki Retschwil Illighausen Aandu Corsier-sur-Vevey Koppigen Lieli Vevey Neukirch an der Thur Courtemaîche Midar Rohr Wil Châtillens Bryn Biel/Bienne Stans Ruppoldsried Sulz Aappilattoq Jona Unterseen Grandvaux Brunnenthal Bhood Mettau Littau Äänekoski Driouch Sulz Noiraigue Valens Peyres-Possens St. Peterzell Interlaken Monnaz Winikon Spiez Benzenschwil Montreux Meiringen Genolier Bonaire Etzgen Tolyatti Basel Ben Taieb Zürich Geneva Bern Müswangen Azaz Matten bei Interlaken Thrissur Bönigen Bévilard Voyvodovo, Haskovo Province Uster Shakhunya Mogelsberg Les Tavernes Kant Fenin-Vilars-Saules Alt St. Johann Petrozavodsk
Zürich, Arab League and Lausanne designate around the same number of languages as their official language as Kant
Zürich Arab League Lausanne
action approx
action find_tuple_counts
relation official language
type administrative territorial entity
type language
action count
action filter_type
action find
entity Kant
relation official language
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?r ) WHERE { ?h property:official_language ?j . ?j rdf:type ontology:language . ?h rdf:type ontology:administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Kant property:official_language ?w . ?w rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?r = ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q666159
P37
Q34770 Q56061
USER
And how about Wanzwil?
(c(Q56061),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q56061
type Q34770
action count
action filter_type
action find
entity Q666159
relation P37
type Q56061
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?h ) WHERE { ?c property:P37 ?x . ?c rdf:type ontology:Q56061 . ?x rdf:type ontology:Q34770 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Q666159 property:P37 ?b . ?b rdf:type ontology:Q56061 } } . FILTER ( ?h = ?s ) }
Wanzwil
action approx
action find_tuple_counts
relation official language
type administrative territorial entity
type language
action count
action filter_type
action find
entity Wanzwil
relation official language
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?h ) WHERE { ?c property:official_language ?x . ?c rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:language } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Wanzwil property:official_language ?b . ?b rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?h = ?s ) }
[]
language administrative territorial entity
Q72 Q7172 Q807
SYSTEM
Zürich, Arab League, Lausanne
Q807 Q64004 Q68978 Q689502 Q9125 Q678901 Q66629 Q9009 Q2641849 Q175345 Q68124 Q704257 Q68965 Q757845 Q639054 Q689954 Q689691 Q643200 Q5576202 Q668705 Q69231 Q7149 Q66616 Q54450 Q3834 Q5951348 Q81811 Q669310 Q674433 Q669411 Q70477 Q429962 Q167715 Q669254 Q64011 Q1990899 Q597413 Q390482 Q662499 Q669360 Q678787 Q68883 Q660215 Q7525 Q661369 Q669400 Q4700013 Q121157 Q2094680 Q1352 Q128499 Q69639 Q662405 Q64679 Q70485 Q669466 Q141502 Q3639927 Q666159 Q3951 Q381861 Q69256 Q5689 Q63964 Q156593 Q781354 Q660142 Q572380 Q581562 Q678991 Q869534 Q3702463 Q21669478 Q669375 Q66208 Q659753 Q15077954 Q435231 Q2718721 Q7172 Q689487 Q196357 Q15730054 Q1757 Q669280 Q5999183 Q2492533 Q57110 Q66668 Q541319 Q68160 Q7001862 Q668740 Q2152433 Q183441 Q689499 Q678690 Q21845358 Q1034 Q63931 Q67812 Q669152 Q59117 Q669350 Q67097 Q664153 Q669292 Q3630738 Q289534 Q688652 Q258447 Q1259122 Q669229 Q661817 Q14512466 Q70683 Q669244 Q68103 Q678769 Q669437 Q69484 Q611382 Q69354 Q64123 Q69290 Q25396 Q669424 Q1341 Q78 Q2801411 Q72 Q71 Q70 Q669332 Q277674 Q65757 Q163798 Q65502 Q69940 Q7942521 Q64032 Q198210 Q869624 Q678960 Q1026291 Q68692 Q286332 Q1895
(c(Q56061),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q56061
type Q34770
action count
action filter_type
action find
entity Q666159
relation P37
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?h ) WHERE { ?c property:P37 ?x . ?c rdf:type ontology:Q56061 . ?x rdf:type ontology:Q34770 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Q666159 property:P37 ?b . ?b rdf:type ontology:Q56061 } } . FILTER ( ?h = ?s ) }
Lausanne Grindelwald Thun Röthenbach bei Herzogenbuchsee Winterthur Colombier Saanen Schaffhausen history of Limousin Thielle-Wavre La Chaux-de-Fonds Albany Solothurn Betma Zhovti Vody Buttes Môtiers Mosen Godavarikhani Montignez Innertkirchen Neudorf Indore Vicques Konstanz Huwyl Gaildorf Balm bei Messen Bettmeralp Niederwil Chézard-Saint-Martin Bibern Thiruvananthapuram Gunzwil Lauterbrunnen Volovița Wildhaus Donatyre Busswil bei Büren Umiken Saint-Saphorin-sur-Morges Villars-Sainte-Croix Hilfikon Sevastopol Steinhof Ittenthal Ak-Dzhar Mashhad Tafersit Chennai Yalta Göschenen Opfertshofen Pratteln Coffrane Oberramsern Oberhofen Bilaspur, Haryana Wanzwil Aalen Aeschlen bei Oberdiessbach Wilderswil Åland Islands Sarnen Sambir Kapurthala Hofen Jizzakh Satara Peney-le-Jorat Wahlern Daqdaqabad Il'inskoe Hottwil Frutigen Albligen Tazaghine Altdorf Phalodi Arab League Buchs Snezhinsk Glarus Helsinki Retschwil Illighausen Aandu Corsier-sur-Vevey Koppigen Lieli Vevey Neukirch an der Thur Courtemaîche Midar Rohr Wil Châtillens Bryn Biel/Bienne Stans Ruppoldsried Sulz Aappilattoq Jona Unterseen Grandvaux Brunnenthal Bhood Mettau Littau Äänekoski Driouch Sulz Noiraigue Valens Peyres-Possens St. Peterzell Interlaken Monnaz Winikon Spiez Benzenschwil Montreux Meiringen Genolier Bonaire Etzgen Tolyatti Basel Ben Taieb Zürich Geneva Bern Müswangen Azaz Matten bei Interlaken Thrissur Bönigen Bévilard Voyvodovo, Haskovo Province Uster Shakhunya Mogelsberg Les Tavernes Kant Fenin-Vilars-Saules Alt St. Johann Petrozavodsk
Zürich Arab League Lausanne
action approx
action find_tuple_counts
relation official language
type administrative territorial entity
type language
action count
action filter_type
action find
entity Wanzwil
relation official language
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?h ) WHERE { ?c property:official_language ?x . ?c rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:language } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Wanzwil property:official_language ?b . ?b rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?h = ?s ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P740
Q1269299 Q43229
USER
How many business organizations or organizations were formed at that administrative territory ?
(c(Q1269299),P740,Q807) (c(Q43229),P740,Q807) (c(Q1269299),P740,Q72) (c(Q43229),P740,Q72) (c(Q1269299),P740,Q7172) (c(Q43229),P740,Q7172) (c(Q1269299),P740,Q807) (c(Q43229),P740,Q807)
[{'concept': 'Q1269299'}, 'P740', 'Q807'] [{'concept': 'Q43229'}, 'P740', 'Q807'] [{'concept': 'Q1269299'}, 'P740', 'Q72'] [{'concept': 'Q43229'}, 'P740', 'Q72'] [{'concept': 'Q1269299'}, 'P740', 'Q7172'] [{'concept': 'Q43229'}, 'P740', 'Q7172'] [{'concept': 'Q1269299'}, 'P740', 'Q807'] [{'concept': 'Q43229'}, 'P740', 'Q807']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P740 resource:Q1219466 } UNION { ?y property:P740 resource:Q1219466 } UNION { ?z property:P740 resource:Q72 } UNION { ?y property:P740 resource:Q72 } UNION { ?z property:P740 resource:Q17659894 } UNION { ?y property:P740 resource:Q17659894 } UNION { ?z property:P740 resource:Q1219466 } UNION { ?y property:P740 resource:Q1219466 } } . ?z rdf:type ontology:Q1269299 . ?y rdf:type ontology:Q43229 }
[{'concept': 'type of business entity'}, 'location of formation', 'Lausanne'] [{'concept': 'organization'}, 'location of formation', 'Lausanne'] [{'concept': 'type of business entity'}, 'location of formation', 'Zürich'] [{'concept': 'organization'}, 'location of formation', 'Zürich'] [{'concept': 'type of business entity'}, 'location of formation', 'Arab League'] [{'concept': 'organization'}, 'location of formation', 'Arab League'] [{'concept': 'type of business entity'}, 'location of formation', 'Lausanne'] [{'concept': 'organization'}, 'location of formation', 'Lausanne']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:location_of_formation resource:Lausanne } UNION { ?y property:location_of_formation resource:Lausanne } UNION { ?z property:location_of_formation resource:Zürich } UNION { ?y property:location_of_formation resource:Zürich } UNION { ?z property:location_of_formation resource:Arab_League } UNION { ?y property:location_of_formation resource:Arab_League } UNION { ?z property:location_of_formation resource:Lausanne } UNION { ?y property:location_of_formation resource:Lausanne } } . ?z rdf:type ontology:type_of_business_entity . ?y rdf:type ontology:organization }
[]
type of business entity organization
Quantitative|Count|Mult. entity type|Clarification
Q7172
SYSTEM
Did you mean Arab League ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P740 resource:Q1219466 } UNION { ?y property:P740 resource:Q1219466 } UNION { ?z property:P740 resource:Q72 } UNION { ?y property:P740 resource:Q72 } UNION { ?z property:P740 resource:Q17659894 } UNION { ?y property:P740 resource:Q17659894 } UNION { ?z property:P740 resource:Q1219466 } UNION { ?y property:P740 resource:Q1219466 } } . ?z rdf:type ontology:Q1269299 . ?y rdf:type ontology:Q43229 }
Did you mean Arab League ?
Arab League
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:location_of_formation resource:Lausanne } UNION { ?y property:location_of_formation resource:Lausanne } UNION { ?z property:location_of_formation resource:Zürich } UNION { ?y property:location_of_formation resource:Zürich } UNION { ?z property:location_of_formation resource:Arab_League } UNION { ?y property:location_of_formation resource:Arab_League } UNION { ?z property:location_of_formation resource:Lausanne } UNION { ?y property:location_of_formation resource:Lausanne } } . ?z rdf:type ontology:type_of_business_entity . ?y rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Lausanne. Could you tell me the answer for that?
(c(Q1269299),P740,Q807) (c(Q43229),P740,Q807) (c(Q1269299),P740,Q72) (c(Q43229),P740,Q72) (c(Q1269299),P740,Q7172) (c(Q43229),P740,Q7172) (c(Q1269299),P740,Q807) (c(Q43229),P740,Q807)
Q807
[{'concept': 'Q1269299'}, 'P740', 'Q807'] [{'concept': 'Q43229'}, 'P740', 'Q807'] [{'concept': 'Q1269299'}, 'P740', 'Q72'] [{'concept': 'Q43229'}, 'P740', 'Q72'] [{'concept': 'Q1269299'}, 'P740', 'Q7172'] [{'concept': 'Q43229'}, 'P740', 'Q7172'] [{'concept': 'Q1269299'}, 'P740', 'Q807'] [{'concept': 'Q43229'}, 'P740', 'Q807']
[{'concept': 'type of business entity'}, 'location of formation', 'Lausanne'] [{'concept': 'organization'}, 'location of formation', 'Lausanne'] [{'concept': 'type of business entity'}, 'location of formation', 'Zürich'] [{'concept': 'organization'}, 'location of formation', 'Zürich'] [{'concept': 'type of business entity'}, 'location of formation', 'Arab League'] [{'concept': 'organization'}, 'location of formation', 'Arab League'] [{'concept': 'type of business entity'}, 'location of formation', 'Lausanne'] [{'concept': 'organization'}, 'location of formation', 'Lausanne']
[]
SYSTEM
3
Q1049707 Q678229 Q3020834
(c(Q1269299),P740,Q807) (c(Q43229),P740,Q807) (c(Q1269299),P740,Q72) (c(Q43229),P740,Q72) (c(Q1269299),P740,Q7172) (c(Q43229),P740,Q7172) (c(Q1269299),P740,Q807) (c(Q43229),P740,Q807)
[ANSWER]
[{'concept': 'Q1269299'}, 'P740', 'Q807'] [{'concept': 'Q43229'}, 'P740', 'Q807'] [{'concept': 'Q1269299'}, 'P740', 'Q72'] [{'concept': 'Q43229'}, 'P740', 'Q72'] [{'concept': 'Q1269299'}, 'P740', 'Q7172'] [{'concept': 'Q43229'}, 'P740', 'Q7172'] [{'concept': 'Q1269299'}, 'P740', 'Q807'] [{'concept': 'Q43229'}, 'P740', 'Q807']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P740 resource:Q1219466 } UNION { ?y property:P740 resource:Q1219466 } UNION { ?z property:P740 resource:Q72 } UNION { ?y property:P740 resource:Q72 } UNION { ?z property:P740 resource:Q17659894 } UNION { ?y property:P740 resource:Q17659894 } UNION { ?z property:P740 resource:Q1219466 } UNION { ?y property:P740 resource:Q1219466 } } . ?z rdf:type ontology:Q1269299 . ?y rdf:type ontology:Q43229 }
Castolin Eutectic Bobst (company) Debiopharm
3
[{'concept': 'type of business entity'}, 'location of formation', 'Lausanne'] [{'concept': 'organization'}, 'location of formation', 'Lausanne'] [{'concept': 'type of business entity'}, 'location of formation', 'Zürich'] [{'concept': 'organization'}, 'location of formation', 'Zürich'] [{'concept': 'type of business entity'}, 'location of formation', 'Arab League'] [{'concept': 'organization'}, 'location of formation', 'Arab League'] [{'concept': 'type of business entity'}, 'location of formation', 'Lausanne'] [{'concept': 'organization'}, 'location of formation', 'Lausanne']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:location_of_formation resource:Lausanne } UNION { ?y property:location_of_formation resource:Lausanne } UNION { ?z property:location_of_formation resource:Zürich } UNION { ?y property:location_of_formation resource:Zürich } UNION { ?z property:location_of_formation resource:Arab_League } UNION { ?y property:location_of_formation resource:Arab_League } UNION { ?z property:location_of_formation resource:Lausanne } UNION { ?y property:location_of_formation resource:Lausanne } } . ?z rdf:type ontology:type_of_business_entity . ?y rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q807
P1001
Q12737077
USER
Which occupation has jurisdiction over Lausanne ?
(c(Q12737077),P1001,Q807)
action filter_type
action find_reverse
entity Q807
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q807']
SELECT DISTINCT ?o WHERE { ?o property:P1001 resource:Q807 . ?o rdf:type ontology:Q12737077 }
Lausanne
action filter_type
action find_reverse
entity Lausanne
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Lausanne']
SELECT DISTINCT ?o WHERE { ?o property:applies_to_jurisdiction resource:Lausanne . ?o rdf:type ontology:occupation }
[]
occupation
Q24702390
SYSTEM
mayor of Lausanne
Q24702390
(c(Q12737077),P1001,Q807)
action filter_type
action find_reverse
entity Q807
relation P1001
type Q12737077
The [ANSWER] has jurisdiction over Lausanne
[{'concept': 'Q12737077'}, 'P1001', 'Q807']
SELECT DISTINCT ?o WHERE { ?o property:P1001 resource:Q807 . ?o rdf:type ontology:Q12737077 }
mayor of Lausanne
The mayor of Lausanne has jurisdiction over Lausanne
mayor of Lausanne
action filter_type
action find_reverse
entity Lausanne
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Lausanne']
SELECT DISTINCT ?o WHERE { ?o property:applies_to_jurisdiction resource:Lausanne . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q24702390
P17
Q15617994
USER
Which administrative territory is that occupation situated in ?
(Q24702390,P17,c(Q15617994))
action filter_type
action find
entity Q24702390
relation P17
type Q15617994
['Q24702390', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q24702390 property:P17 ?v }
mayor of Lausanne
action filter_type
action find
entity mayor of Lausanne
relation country
type designation for an administrative territorial entity
['mayor of Lausanne', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:mayor_of_Lausanne property:country ?v }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q24702390,P17,c(Q15617994))
action filter_type
action find
entity Q24702390
relation P17
type Q15617994
That occupation is situated in [ANSWER]
['Q24702390', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q24702390 property:P17 ?v }
Switzerland
That occupation is situated in Switzerland
Switzerland
action filter_type
action find
entity mayor of Lausanne
relation country
type designation for an administrative territorial entity
['mayor of Lausanne', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:mayor_of_Lausanne property:country ?v }
[]