Simple Question (Direct)
Simple Question
Q443658
P27
Q15617994
USER
Which administrative territory does Federico de Castro belong to ?
(Q443658,P27,c(Q15617994))
action filter_type
action find
entity Q443658
relation P27
type Q15617994
['Q443658', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q443658 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Federico de Castro
action filter_type
action find
entity Federico de Castro
relation country of citizenship
type designation for an administrative territorial entity
['Federico de Castro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Federico_de_Castro property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q443658,P27,c(Q15617994))
action filter_type
action find
entity Q443658
relation P27
type Q15617994
Federico de Castro belongs to [ANSWER]
['Q443658', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q443658 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Spain
Federico de Castro belongs to Spain
Spain
action filter_type
action find
entity Federico de Castro
relation country of citizenship
type designation for an administrative territorial entity
['Federico de Castro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Federico_de_Castro property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q443658
P1412
Q34770
USER
Which language is spoken by that person ?
(Q29,P1412,c(Q34770))
action filter_type
action find
entity Q443658
relation P1412
type Q34770
['Q29', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q443658 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Federico de Castro
action filter_type
action find
entity Federico de Castro
relation languages spoken, written or signed
type language
['Spain', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Federico_de_Castro property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q29,P1412,c(Q34770))
action filter_type
action find
entity Q443658
relation P1412
type Q34770
[ANSWER] is spoken by that person
['Q29', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q443658 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Spanish
Spanish is spoken by that person
Spanish
action filter_type
action find
entity Federico de Castro
relation languages spoken, written or signed
type language
['Spain', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Federico_de_Castro property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q8785
P407
Q34770 Q82799 Q7725634
USER
How many languages are the languages of work for approximately the same number of names and literary works as Armenian ?
(c(Q82799)|c(Q7725634),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q8785
relation P407
type Q82799
type Q7725634
[[{'concept': 'Q82799'}, {'concept': 'Q7725634'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?l WHERE { VALUES ( ?p ) { ( ontology:Q82799 ) ( ontology:Q7725634 ) } . ?j rdf:type ?p } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { { ?t rdf:type ontology:Q82799 } UNION { ?t rdf:type ontology:Q7725634 } } . ?t property:P407 resource:Q8785 } } . FILTER ( ?x = ?m ) }
Armenian
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_multi_types
action find_reverse
entity Armenian
relation language of work or name
type name
type literary work
[[{'concept': 'name'}, {'concept': 'literary work'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?l WHERE { VALUES ( ?p ) { ( ontology:name ) ( ontology:literary_work ) } . ?j rdf:type ?p } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { { ?t rdf:type ontology:name } UNION { ?t rdf:type ontology:literary_work } } . ?t property:language_of_work_or_name resource:Armenian } } . FILTER ( ?x = ?m ) }
[]
language name literary work
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799)|c(Q7725634),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q8785
relation P407
type Q82799
type Q7725634
[ANSWER]
[[{'concept': 'Q82799'}, {'concept': 'Q7725634'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?l WHERE { VALUES ( ?p ) { ( ontology:Q82799 ) ( ontology:Q7725634 ) } . ?j rdf:type ?p } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { { ?t rdf:type ontology:Q82799 } UNION { ?t rdf:type ontology:Q7725634 } } . ?t property:P407 resource:Q8785 } } . FILTER ( ?x = ?m ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_multi_types
action find_reverse
entity Armenian
relation language of work or name
type name
type literary work
[[{'concept': 'name'}, {'concept': 'literary work'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?l WHERE { VALUES ( ?p ) { ( ontology:name ) ( ontology:literary_work ) } . ?j rdf:type ?p } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { { { ?t rdf:type ontology:name } UNION { ?t rdf:type ontology:literary_work } } . ?t property:language_of_work_or_name resource:Armenian } } . FILTER ( ?x = ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q35499
P407
Q34770 Q82799 Q7725634
USER
And also tell me about Old Church Slavonic?
(c(Q82799)|c(Q7725634),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q35499
relation P407
type Q82799
type Q7725634
[[{'concept': 'Q82799'}, {'concept': 'Q7725634'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?f WHERE { VALUES ( ?h ) { ( ontology:Q7725634 ) ( ontology:Q82799 ) } . ?c rdf:type ?h } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { { ?i rdf:type ontology:Q7725634 } UNION { ?i rdf:type ontology:Q82799 } } . ?i property:P407 resource:Q35499 } } . FILTER ( ?t = ?o ) }
Old Church Slavonic
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_multi_types
action find_reverse
entity Old Church Slavonic
relation language of work or name
type name
type literary work
[[{'concept': 'name'}, {'concept': 'literary work'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?f WHERE { VALUES ( ?h ) { ( ontology:literary_work ) ( ontology:name ) } . ?c rdf:type ?h } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { { ?i rdf:type ontology:literary_work } UNION { ?i rdf:type ontology:name } } . ?i property:language_of_work_or_name resource:Old_Church_Slavonic } } . FILTER ( ?t = ?o ) }
[]
language name literary work
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799)|c(Q7725634),P407,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q35499
relation P407
type Q82799
type Q7725634
[ANSWER]
[[{'concept': 'Q82799'}, {'concept': 'Q7725634'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?f WHERE { VALUES ( ?h ) { ( ontology:Q7725634 ) ( ontology:Q82799 ) } . ?c rdf:type ?h } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { { ?i rdf:type ontology:Q7725634 } UNION { ?i rdf:type ontology:Q82799 } } . ?i property:P407 resource:Q35499 } } . FILTER ( ?t = ?o ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action approx
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
action count
action filter_multi_types
action find_reverse
entity Old Church Slavonic
relation language of work or name
type name
type literary work
[[{'concept': 'name'}, {'concept': 'literary work'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?f WHERE { VALUES ( ?h ) { ( ontology:literary_work ) ( ontology:name ) } . ?c rdf:type ?h } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { { ?i rdf:type ontology:literary_work } UNION { ?i rdf:type ontology:name } } . ?i property:language_of_work_or_name resource:Old_Church_Slavonic } } . FILTER ( ?t = ?o ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q9027 Q8785
P1412
Q502895
USER
Which people speaks Armenian and Swedish ?
AND((c(Q502895),P1412,Q8785), (c(Q502895),P1412,Q9027))
action filter_type
action intersection
action find_reverse
entity Q8785
relation P1412
action find_reverse
entity Q9027
relation P1412
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1412', 'Q8785'], [{'concept': 'Q502895'}, 'P1412', 'Q9027']]}
SELECT DISTINCT ?t WHERE { ?t property:P1412 resource:Q9027 . ?t property:P1412 resource:Q8785 . ?t rdf:type ontology:Q502895 }
Swedish Armenian
action filter_type
action intersection
action find_reverse
entity Armenian
relation languages spoken, written or signed
action find_reverse
entity Swedish
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'Armenian'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'Swedish']]}
SELECT DISTINCT ?t WHERE { ?t property:languages_spoken,_written_or_signed resource:Swedish . ?t property:languages_spoken,_written_or_signed resource:Armenian . ?t rdf:type ontology:common_name }
[]
common name
Q117763
SYSTEM
Giuseppe Caspar Mezzofanti
Q117763
AND((c(Q502895),P1412,Q8785), (c(Q502895),P1412,Q9027))
action filter_type
action intersection
action find_reverse
entity Q8785
relation P1412
action find_reverse
entity Q9027
relation P1412
type Q502895
[ANSWER] speaks Armenian and Swedish
{'AND': [[{'concept': 'Q502895'}, 'P1412', 'Q8785'], [{'concept': 'Q502895'}, 'P1412', 'Q9027']]}
SELECT DISTINCT ?t WHERE { ?t property:P1412 resource:Q9027 . ?t property:P1412 resource:Q8785 . ?t rdf:type ontology:Q502895 }
Giuseppe Caspar Mezzofanti
Giuseppe Caspar Mezzofanti speaks Armenian and Swedish
Giuseppe Caspar Mezzofanti
action filter_type
action intersection
action find_reverse
entity Armenian
relation languages spoken, written or signed
action find_reverse
entity Swedish
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'Armenian'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'Swedish']]}
SELECT DISTINCT ?t WHERE { ?t property:languages_spoken,_written_or_signed resource:Swedish . ?t property:languages_spoken,_written_or_signed resource:Armenian . ?t rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q117763 Q7417999 Q2634
P20
Q56061
USER
Does that person have Sangi Darreh and Naples as the area of death ?
(Q117763,P20,Q7417999) (Q117763,P20,Q2634)
action is_in
entity Q117763
action intersection
action find_reverse
entity Q7417999
relation P20
action find_reverse
entity Q2634
relation P20
['Q117763', 'P20', 'Q7417999'] ['Q117763', 'P20', 'Q2634']
ASK WHERE { resource:Q117763 property:P20 resource:Q7417999 . resource:Q117763 property:P20 resource:Q2634 }
Giuseppe Caspar Mezzofanti Sangi Darreh Naples
action is_in
entity Giuseppe Caspar Mezzofanti
action intersection
action find_reverse
entity Sangi Darreh
relation place of death
action find_reverse
entity Naples
relation place of death
['Giuseppe Caspar Mezzofanti', 'place of death', 'Sangi Darreh'] ['Giuseppe Caspar Mezzofanti', 'place of death', 'Naples']
ASK WHERE { resource:Giuseppe_Caspar_Mezzofanti property:place_of_death resource:Sangi_Darreh . resource:Giuseppe_Caspar_Mezzofanti property:place_of_death resource:Naples }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q117763,P20,Q7417999) (Q117763,P20,Q2634)
action is_in
entity Q117763
action intersection
action find_reverse
entity Q7417999
relation P20
action find_reverse
entity Q2634
relation P20
[ANSWER]
['Q117763', 'P20', 'Q7417999'] ['Q117763', 'P20', 'Q2634']
ASK WHERE { resource:Q117763 property:P20 resource:Q7417999 . resource:Q117763 property:P20 resource:Q2634 }
NO and YES respectively
action is_in
entity Giuseppe Caspar Mezzofanti
action intersection
action find_reverse
entity Sangi Darreh
relation place of death
action find_reverse
entity Naples
relation place of death
['Giuseppe Caspar Mezzofanti', 'place of death', 'Sangi Darreh'] ['Giuseppe Caspar Mezzofanti', 'place of death', 'Naples']
ASK WHERE { resource:Giuseppe_Caspar_Mezzofanti property:place_of_death resource:Sangi_Darreh . resource:Giuseppe_Caspar_Mezzofanti property:place_of_death resource:Naples }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q443658 Q5819045
P20
Q56061
USER
Did the demise of Federico de Castro occur Kahn-e Bala, Sistan and Baluchestan ?
(Q443658,P20,Q5819045)
action is_in
entity Q5819045
action find
entity Q443658
relation P20
['Q443658', 'P20', 'Q5819045']
ASK WHERE { resource:Q443658 property:P20 resource:Q5819045 }
Federico de Castro Kahn-e Bala, Sistan and Baluchestan
action is_in
entity Kahn-e Bala, Sistan and Baluchestan
action find
entity Federico de Castro
relation place of death
['Federico de Castro', 'place of death', 'Kahn-e Bala, Sistan and Baluchestan']
ASK WHERE { resource:Federico_de_Castro property:place_of_death resource:Kahn-e_Bala,_Sistan_and_Baluchestan }
[]
administrative territorial entity
SYSTEM
NO
(Q443658,P20,Q5819045)
action is_in
entity Q5819045
action find
entity Q443658
relation P20
[ANSWER]
['Q443658', 'P20', 'Q5819045']
ASK WHERE { resource:Q443658 property:P20 resource:Q5819045 }
No
action is_in
entity Kahn-e Bala, Sistan and Baluchestan
action find
entity Federico de Castro
relation place of death
['Federico de Castro', 'place of death', 'Kahn-e Bala, Sistan and Baluchestan']
ASK WHERE { resource:Federico_de_Castro property:place_of_death resource:Kahn-e_Bala,_Sistan_and_Baluchestan }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q29 Q5267537 Q155
P530
Q15617994
USER
Does Spain have diplomatic associations with Devine Independent School District and Brazil ?
(Q29,P530,Q5267537) (Q29,P530,Q155)
action is_in
entity Q29
action intersection
action find_reverse
entity Q5267537
relation P530
action find_reverse
entity Q155
relation P530
['Q29', 'P530', 'Q5267537'] ['Q29', 'P530', 'Q155']
ASK WHERE { resource:Q29 property:P530 resource:Q5267537 . resource:Q29 property:P530 resource:Q155 }
Spain Devine Independent School District Brazil
action is_in
entity Spain
action intersection
action find_reverse
entity Devine Independent School District
relation diplomatic relation
action find_reverse
entity Brazil
relation diplomatic relation
['Spain', 'diplomatic relation', 'Devine Independent School District'] ['Spain', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Devine_Independent_School_District . resource:Spain property:diplomatic_relation resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q29,P530,Q5267537) (Q29,P530,Q155)
action is_in
entity Q29
action intersection
action find_reverse
entity Q5267537
relation P530
action find_reverse
entity Q155
relation P530
[ANSWER]
['Q29', 'P530', 'Q5267537'] ['Q29', 'P530', 'Q155']
ASK WHERE { resource:Q29 property:P530 resource:Q5267537 . resource:Q29 property:P530 resource:Q155 }
NO and YES respectively
action is_in
entity Spain
action intersection
action find_reverse
entity Devine Independent School District
relation diplomatic relation
action find_reverse
entity Brazil
relation diplomatic relation
['Spain', 'diplomatic relation', 'Devine Independent School District'] ['Spain', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Devine_Independent_School_District . resource:Spain property:diplomatic_relation resource:Brazil }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q20831
P282
Q2001982 Q8192 Q34770
USER
Which languages utilizes greater number of notations and writing systems as the writing system than Cahto language ?
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q20831
relation P282
type Q2001982
type Q8192
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { resource:Q20831 property:P282 ?l . { { ?l rdf:type ontology:Q2001982 } UNION { ?l rdf:type ontology:Q8192 } } } } . FILTER ( ?x > ?q ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?z WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } GROUP BY ?z } }
Cahto language
action greater
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_multi_types
action find
entity Cahto language
relation writing system
type notation
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { resource:Cahto_language property:writing_system ?l . { { ?l rdf:type ontology:notation } UNION { ?l rdf:type ontology:writing_system } } } } . FILTER ( ?x > ?q ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?z WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:notation ) ( ontology:writing_system ) } } GROUP BY ?z } }
[]
notation writing system language
Q29572 Q182695 Q1669994
SYSTEM
Avestan, Late Old Japanese, Minoan language
Q182695 Q29572 Q35470 Q1669994 Q2705672 Q36795 Q20972034 Q36790 Q36751
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q20831
relation P282
type Q2001982
type Q8192
[ANSWERS] utilize greater number of notations and writing systems as the writing system than Cahto language
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { resource:Q20831 property:P282 ?l . { { ?l rdf:type ontology:Q2001982 } UNION { ?l rdf:type ontology:Q8192 } } } } . FILTER ( ?x > ?q ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?z WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } GROUP BY ?z } }
Late Old Japanese Avestan Elamite language Minoan language Paeonian language Tartessian Classic Greek Sumerian Phrygian language
Avestan, Late Old Japanese and Minoan language utilize greater number of notations and writing systems as the writing system than Cahto language
Avestan Late Old Japanese Minoan language
action greater
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_multi_types
action find
entity Cahto language
relation writing system
type notation
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { resource:Cahto_language property:writing_system ?l . { { ?l rdf:type ontology:notation } UNION { ?l rdf:type ontology:writing_system } } } } . FILTER ( ?x > ?q ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?z WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:notation ) ( ontology:writing_system ) } } GROUP BY ?z } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q20972034
P282
Q2001982 Q8192 Q34770
USER
And what about Classic Greek?
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q20972034
relation P282
type Q2001982
type Q8192
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) ?d WHERE { VALUES ( ?w ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } . ?l rdf:type ?w } GROUP BY ?d } . FILTER ( ?m > ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q20972034 property:P282 ?k . { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } } } }
Classic Greek
action greater
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_multi_types
action find
entity Classic Greek
relation writing system
type notation
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) ?d WHERE { VALUES ( ?w ) { ( ontology:notation ) ( ontology:writing_system ) } . ?l rdf:type ?w } GROUP BY ?d } . FILTER ( ?m > ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Classic_Greek property:writing_system ?k . { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:notation ) ( ontology:writing_system ) } } } } }
[]
notation writing system language
Q182695 Q29572
SYSTEM
Late Old Japanese, Avestan
Q182695 Q29572
(c(Q34770),P282,c(Q2001982)|c(Q8192))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_multi_types
action find
entity Q20972034
relation P282
type Q2001982
type Q8192
[ANSWERS]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) ?d WHERE { VALUES ( ?w ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } . ?l rdf:type ?w } GROUP BY ?d } . FILTER ( ?m > ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q20972034 property:P282 ?k . { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:Q2001982 ) ( ontology:Q8192 ) } } } } }
Late Old Japanese Avestan
Late Old Japanese Avestan
action greater
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_multi_types
action find
entity Classic Greek
relation writing system
type notation
type writing system
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'writing system'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) ?d WHERE { VALUES ( ?w ) { ( ontology:notation ) ( ontology:writing_system ) } . ?l rdf:type ?w } GROUP BY ?d } . FILTER ( ?m > ?p ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Classic_Greek property:writing_system ?k . { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:notation ) ( ontology:writing_system ) } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18746330
P30
Q2221906
USER
Which geographic location is Limpejioru River located in ?
(Q18746330,P30,c(Q2221906))
action filter_type
action find
entity Q18746330
relation P30
type Q2221906
['Q18746330', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { resource:Q18746330 property:P30 ?t . ?t rdf:type ontology:Q2221906 }
Limpejioru River
action filter_type
action find
entity Limpejioru River
relation continent
type geographic location
['Limpejioru River', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { resource:Limpejioru_River property:continent ?t . ?t rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q18746330,P30,c(Q2221906))
action filter_type
action find
entity Q18746330
relation P30
type Q2221906
Which geographic location is Limpejioru River located in
['Q18746330', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { resource:Q18746330 property:P30 ?t . ?t rdf:type ontology:Q2221906 }
Europe
Which geographic location is Limpejioru River located in
Europe
action filter_type
action find
entity Limpejioru River
relation continent
type geographic location
['Limpejioru River', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { resource:Limpejioru_River property:continent ?t . ?t rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q675985
Q2221906
USER
And how about Piz Lunghin?
(Q675985,P30,c(Q2221906))
action filter_type
action find
entity Q675985
relation P30
type Q2221906
['Q675985', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q2221906 . resource:Q675985 property:P30 ?i }
Piz Lunghin
action filter_type
action find
entity Piz Lunghin
relation continent
type geographic location
['Piz Lunghin', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:geographic_location . resource:Piz_Lunghin property:continent ?i }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q675985,P30,c(Q2221906))
action filter_type
action find
entity Q675985
relation P30
type Q2221906
[ANSWER]
['Q675985', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q2221906 . resource:Q675985 property:P30 ?i }
Europe
Europe
action filter_type
action find
entity Piz Lunghin
relation continent
type geographic location
['Piz Lunghin', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:geographic_location . resource:Piz_Lunghin property:continent ?i }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q46 Q39061 Q1683655
P706
Q82794
USER
Is Europe located in Northern Hemisphere and Sugana Valley ?
(Q46,P706,Q39061) (Q46,P706,Q1683655)
action is_in
entity Q46
action intersection
action find_reverse
entity Q39061
relation P706
action find_reverse
entity Q1683655
relation P706
['Q46', 'P706', 'Q39061'] ['Q46', 'P706', 'Q1683655']
ASK WHERE { resource:Q46 property:P706 resource:Q39061 . resource:Q46 property:P706 resource:Q1683655 }
Europe Northern Hemisphere Sugana Valley
action is_in
entity Europe
action intersection
action find_reverse
entity Northern Hemisphere
relation located on terrain feature
action find_reverse
entity Sugana Valley
relation located on terrain feature
['Europe', 'located on terrain feature', 'Northern Hemisphere'] ['Europe', 'located on terrain feature', 'Sugana Valley']
ASK WHERE { resource:Europe property:located_on_terrain_feature resource:Northern_Hemisphere . resource:Europe property:located_on_terrain_feature resource:Sugana_Valley }
[]
geographic region
SYSTEM
YES and NO respectively
(Q46,P706,Q39061) (Q46,P706,Q1683655)
action is_in
entity Q46
action intersection
action find_reverse
entity Q39061
relation P706
action find_reverse
entity Q1683655
relation P706
[ANSWER]
['Q46', 'P706', 'Q39061'] ['Q46', 'P706', 'Q1683655']
ASK WHERE { resource:Q46 property:P706 resource:Q39061 . resource:Q46 property:P706 resource:Q1683655 }
YES and NO respectively
action is_in
entity Europe
action intersection
action find_reverse
entity Northern Hemisphere
relation located on terrain feature
action find_reverse
entity Sugana Valley
relation located on terrain feature
['Europe', 'located on terrain feature', 'Northern Hemisphere'] ['Europe', 'located on terrain feature', 'Sugana Valley']
ASK WHERE { resource:Europe property:located_on_terrain_feature resource:Northern_Hemisphere . resource:Europe property:located_on_terrain_feature resource:Sugana_Valley }
[]