Simple Question (Direct)
Simple Question
Q16250573
P364
Q34770
USER
Which language was used originally for the creation of A Merry Friggin' Christmas ?
(Q16250573,P364,c(Q34770))
action filter_type
action find
entity Q16250573
relation P364
type Q34770
['Q16250573', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q16250573 property:P364 ?a . ?a rdf:type ontology:Q34770 }
A Merry Friggin' Christmas
action filter_type
action find
entity A Merry Friggin' Christmas
relation original language of work
type language
["A Merry Friggin' Christmas", 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:A_Merry_Friggin'_Christmas property:original_language_of_work ?a . ?a rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16250573,P364,c(Q34770))
action filter_type
action find
entity Q16250573
relation P364
type Q34770
In [ANSWER] was used originally for the creation of A Merry Friggin' Christmas
['Q16250573', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q16250573 property:P364 ?a . ?a rdf:type ontology:Q34770 }
English
In English was used originally for the creation of A Merry Friggin' Christmas
English
action filter_type
action find
entity A Merry Friggin' Christmas
relation original language of work
type language
["A Merry Friggin' Christmas", 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:A_Merry_Friggin'_Christmas property:original_language_of_work ?a . ?a rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16250573
P58
Q502895
USER
Who served as the screenwriter for that work of art ?
(Q1860,P58,c(Q502895))
action filter_type
action find
entity Q16250573
relation P58
type Q502895
['Q1860', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q16250573 property:P58 ?l . ?l rdf:type ontology:Q502895 }
A Merry Friggin' Christmas
action filter_type
action find
entity A Merry Friggin' Christmas
relation screenwriter
type common name
['English', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:A_Merry_Friggin'_Christmas property:screenwriter ?l . ?l rdf:type ontology:common_name }
[]
common name
Q16730381
SYSTEM
Phil Johnston
Q16730381
(Q1860,P58,c(Q502895))
action filter_type
action find
entity Q16250573
relation P58
type Q502895
[ANSWER] served as the screenwriter for that work of art
['Q1860', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q16250573 property:P58 ?l . ?l rdf:type ontology:Q502895 }
Phil Johnston
Phil Johnston served as the screenwriter for that work of art
Phil Johnston
action filter_type
action find
entity A Merry Friggin' Christmas
relation screenwriter
type common name
['English', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:A_Merry_Friggin'_Christmas property:screenwriter ?l . ?l rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q4006757
P725
Q502895 Q6619679
USER
How many fictional humanoids had their voice dubbing done by around the same number of people as Utena Tenjo ?
(c(Q6619679),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q4006757
relation P725
type Q6619679
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?d ) WHERE { ?z property:P725 ?k . ?z rdf:type ontology:Q6619679 . ?k rdf:type ontology:Q502895 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:Q6619679 . resource:Q4006757 property:P725 ?n } } . FILTER ( ?d = ?o ) }
Utena Tenjo
action count
action approx
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Utena Tenjo
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?d ) WHERE { ?z property:voice_actor ?k . ?z rdf:type ontology:fictional_humanoid . ?k rdf:type ontology:common_name } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:fictional_humanoid . resource:Utena_Tenjo property:voice_actor ?n } } . FILTER ( ?d = ?o ) }
[]
common name fictional humanoid
SYSTEM
25
Q1623086 Q1205263 Q4992177 Q24010814 Q819585 Q1079617 Q718965 Q3784876 Q4006757 Q15614636 Q1148698 Q1056953 Q250221 Q3149148 Q18156023 Q6989902 Q15726744 Q601978 Q757015 Q15620419 Q13471616 Q12879 Q19796729 Q716636 Q1154920
(c(Q6619679),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q4006757
relation P725
type Q6619679
[ANSWER]
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?d ) WHERE { ?z property:P725 ?k . ?z rdf:type ontology:Q6619679 . ?k rdf:type ontology:Q502895 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:Q6619679 . resource:Q4006757 property:P725 ?n } } . FILTER ( ?d = ?o ) }
Hector Barbossa Eli Vance Cave Johnson Deckard Cain Jaina Proudmoore Wallace Breen Hinata Hyuga Henrietta Utena Tenjo Anna (Disney) Ai Haibara Minsc Alyx Vance Imoen Maud Pie Neku Sakuraba Silver Spoon Kyon Sailor Moon Elsa Mr. Bean Toph Beifong Michelle Mr. Burns Father Grigori
25
action count
action approx
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Utena Tenjo
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?k ) AS ?d ) WHERE { ?z property:voice_actor ?k . ?z rdf:type ontology:fictional_humanoid . ?k rdf:type ontology:common_name } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:fictional_humanoid . resource:Utena_Tenjo property:voice_actor ?n } } . FILTER ( ?d = ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q11479883
P725
Q502895 Q6619679
USER
And also tell me about Mami Tomoe?
(c(Q6619679),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q11479883
relation P725
type Q6619679
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?t ) WHERE { ?m property:P725 ?a . ?m rdf:type ontology:Q6619679 . ?a rdf:type ontology:Q502895 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { resource:Q11479883 property:P725 ?j . ?j rdf:type ontology:Q6619679 } } . FILTER ( ?t = ?q ) }
Mami Tomoe
action count
action approx
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Mami Tomoe
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?t ) WHERE { ?m property:voice_actor ?a . ?m rdf:type ontology:fictional_humanoid . ?a rdf:type ontology:common_name } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { resource:Mami_Tomoe property:voice_actor ?j . ?j rdf:type ontology:fictional_humanoid } } . FILTER ( ?t = ?q ) }
[]
common name fictional humanoid
SYSTEM
19
Q15707554 Q11609133 Q15726751 Q11479883 Q994344 Q11677249 Q718965 Q3784876 Q1148698 Q11382982 Q18073923 Q18156023 Q6989902 Q11514862 Q15726744 Q601978 Q19796729 Q931 Q716636
(c(Q6619679),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q11479883
relation P725
type Q6619679
[ANSWER]
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?t ) WHERE { ?m property:P725 ?a . ?m rdf:type ontology:Q6619679 . ?a rdf:type ontology:Q502895 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { resource:Q11479883 property:P725 ?j . ?j rdf:type ontology:Q6619679 } } . FILTER ( ?t = ?q ) }
Apple Bloom Sayaka Miki Diamond Tiara Mami Tomoe Ezio Auditore da Firenze Madoka Kaname Hinata Hyuga Henrietta Ai Haibara Kyoko Sakura Sunset Shimmer Maud Pie Neku Sakuraba Homura Akemi Silver Spoon Kyon Michelle Naruto Uzumaki Mr. Burns
19
action count
action approx
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Mami Tomoe
relation voice actor
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?t ) WHERE { ?m property:voice_actor ?a . ?m rdf:type ontology:fictional_humanoid . ?a rdf:type ontology:common_name } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { resource:Mami_Tomoe property:voice_actor ?j . ?j rdf:type ontology:fictional_humanoid } } . FILTER ( ?t = ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q21161949
P282
Q9779 Q2001982 Q34770
USER
Which languages are more number of alphabets and notations the writing system of than Serbian written in Latin script ?
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q21161949
relation P282
type Q9779
type Q2001982
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?i ) WHERE { { ?q property:P282 ?f . ?f rdf:type ontology:Q9779 . ?q rdf:type ontology:Q34770 } UNION { ?q property:P282 ?f . ?q rdf:type ontology:Q34770 . ?f rdf:type ontology:Q2001982 } } GROUP BY ?q } . FILTER ( ?i > ?u ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Q21161949 property:P282 ?g . { { ?g rdf:type ontology:Q9779 } UNION { ?g rdf:type ontology:Q2001982 } } } } }
Serbian written in Latin script
action greater
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Serbian written in Latin script
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?i ) WHERE { { ?q property:writing_system ?f . ?f rdf:type ontology:alphabet . ?q rdf:type ontology:language } UNION { ?q property:writing_system ?f . ?q rdf:type ontology:language . ?f rdf:type ontology:notation } } GROUP BY ?q } . FILTER ( ?i > ?u ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Serbian_written_in_Latin_script property:writing_system ?g . { { ?g rdf:type ontology:alphabet } UNION { ?g rdf:type ontology:notation } } } } }
[]
alphabet notation language
Q29572 Q182695 Q35499
SYSTEM
Avestan, Late Old Japanese, Old Church Slavonic
Q182695 Q29572 Q35470 Q13211 Q35499 Q33251 Q21161942 Q1639124 Q2705672 Q36795 Q20972034 Q36790 Q36751 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q21161949
relation P282
type Q9779
type Q2001982
[ANSWERS] are more number of alphabets and notations the writing system of than Serbian written in Latin script
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?i ) WHERE { { ?q property:P282 ?f . ?f rdf:type ontology:Q9779 . ?q rdf:type ontology:Q34770 } UNION { ?q property:P282 ?f . ?q rdf:type ontology:Q34770 . ?f rdf:type ontology:Q2001982 } } GROUP BY ?q } . FILTER ( ?i > ?u ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Q21161949 property:P282 ?g . { { ?g rdf:type ontology:Q9779 } UNION { ?g rdf:type ontology:Q2001982 } } } } }
Late Old Japanese Avestan Elamite language Ruthenian Old Church Slavonic Church Slavonic Serbian written in Cyrillic Slavoserbian Paeonian language Tartessian Classic Greek Sumerian Phrygian language Nivkh language Italian
Avestan, Late Old Japanese and Old Church Slavonic are more number of alphabets and notations the writing system of than Serbian written in Latin script
Avestan Late Old Japanese Old Church Slavonic
action greater
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Serbian written in Latin script
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?i ) WHERE { { ?q property:writing_system ?f . ?f rdf:type ontology:alphabet . ?q rdf:type ontology:language } UNION { ?q property:writing_system ?f . ?q rdf:type ontology:language . ?f rdf:type ontology:notation } } GROUP BY ?q } . FILTER ( ?i > ?u ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Serbian_written_in_Latin_script property:writing_system ?g . { { ?g rdf:type ontology:alphabet } UNION { ?g rdf:type ontology:notation } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1321
P282
Q9779 Q2001982 Q34770
USER
And also tell me about Spanish?
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q1321
relation P282
type Q9779
type Q2001982
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?r WHERE { { ?r property:P282 ?h . ?r rdf:type ontology:Q34770 . ?h rdf:type ontology:Q9779 } UNION { ?r property:P282 ?h . ?r rdf:type ontology:Q34770 . ?h rdf:type ontology:Q2001982 } } GROUP BY ?r } . FILTER ( ?f > ?w ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:Q1321 property:P282 ?y . { { ?y rdf:type ontology:Q9779 } UNION { ?y rdf:type ontology:Q2001982 } } } } }
Spanish
action greater
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Spanish
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?r WHERE { { ?r property:writing_system ?h . ?r rdf:type ontology:language . ?h rdf:type ontology:alphabet } UNION { ?r property:writing_system ?h . ?r rdf:type ontology:language . ?h rdf:type ontology:notation } } GROUP BY ?r } . FILTER ( ?f > ?w ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:Spanish property:writing_system ?y . { { ?y rdf:type ontology:alphabet } UNION { ?y rdf:type ontology:notation } } } } }
[]
alphabet notation language
Q29572 Q182695 Q35499
SYSTEM
Avestan, Late Old Japanese, Old Church Slavonic
Q182695 Q29572 Q35470 Q13211 Q35499 Q33251 Q21161942 Q1639124 Q2705672 Q36795 Q20972034 Q36790 Q36751 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q1321
relation P282
type Q9779
type Q2001982
[ANSWERS]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?r WHERE { { ?r property:P282 ?h . ?r rdf:type ontology:Q34770 . ?h rdf:type ontology:Q9779 } UNION { ?r property:P282 ?h . ?r rdf:type ontology:Q34770 . ?h rdf:type ontology:Q2001982 } } GROUP BY ?r } . FILTER ( ?f > ?w ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:Q1321 property:P282 ?y . { { ?y rdf:type ontology:Q9779 } UNION { ?y rdf:type ontology:Q2001982 } } } } }
Late Old Japanese Avestan Elamite language Ruthenian Old Church Slavonic Church Slavonic Serbian written in Cyrillic Slavoserbian Paeonian language Tartessian Classic Greek Sumerian Phrygian language Nivkh language Italian
Avestan Late Old Japanese Old Church Slavonic
action greater
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Spanish
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?r WHERE { { ?r property:writing_system ?h . ?r rdf:type ontology:language . ?h rdf:type ontology:alphabet } UNION { ?r property:writing_system ?h . ?r rdf:type ontology:language . ?h rdf:type ontology:notation } } GROUP BY ?r } . FILTER ( ?f > ?w ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:Spanish property:writing_system ?y . { { ?y rdf:type ontology:alphabet } UNION { ?y rdf:type ontology:notation } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16250573
P915
Q56061
USER
Which city was A Merry Friggin' Christmas filmed on ?
(Q16250573,P915,c(Q56061))
action filter_type
action find
entity Q16250573
relation P915
type Q56061
['Q16250573', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q16250573 property:P915 ?j . ?j rdf:type ontology:Q56061 }
A Merry Friggin' Christmas
action filter_type
action find
entity A Merry Friggin' Christmas
relation filming location
type administrative territorial entity
["A Merry Friggin' Christmas", 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:A_Merry_Friggin'_Christmas property:filming_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q23556
SYSTEM
Atlanta
Q23556
(Q16250573,P915,c(Q56061))
action filter_type
action find
entity Q16250573
relation P915
type Q56061
A Merry Friggin ' Christmas was filmed in [ANSWER]
['Q16250573', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q16250573 property:P915 ?j . ?j rdf:type ontology:Q56061 }
Atlanta
A Merry Friggin ' Christmas was filmed in Atlanta
Atlanta
action filter_type
action find
entity A Merry Friggin' Christmas
relation filming location
type administrative territorial entity
["A Merry Friggin' Christmas", 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:A_Merry_Friggin'_Christmas property:filming_location ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q23556 Q39178
P190
Q56061
USER
Is Port of Spain sister town of Atlanta ?
(Q23556,P190,Q39178)
action is_in
entity Q39178
action find
entity Q23556
relation P190
['Q23556', 'P190', 'Q39178']
ASK WHERE { resource:Q23556 property:P190 resource:Q39178 }
Atlanta Port of Spain
action is_in
entity Port of Spain
action find
entity Atlanta
relation sister city
['Atlanta', 'sister city', 'Port of Spain']
ASK WHERE { resource:Atlanta property:sister_city resource:Port_of_Spain }
[]
administrative territorial entity
SYSTEM
YES
(Q23556,P190,Q39178)
action is_in
entity Q39178
action find
entity Q23556
relation P190
[ANSWER]
['Q23556', 'P190', 'Q39178']
ASK WHERE { resource:Q23556 property:P190 resource:Q39178 }
Yes
action is_in
entity Port of Spain
action find
entity Atlanta
relation sister city
['Atlanta', 'sister city', 'Port of Spain']
ASK WHERE { resource:Atlanta property:sister_city resource:Port_of_Spain }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q1048835 Q13220204
USER
Which languages are the official languages of max number of political territories or administrative country subdivisions ?
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?h WHERE { { ?x property:P37 ?h . ?h rdf:type ontology:Q34770 . ?x rdf:type ontology:Q1048835 } UNION { ?x property:P37 ?h . ?x rdf:type ontology:Q13220204 . ?h rdf:type ontology:Q34770 } } GROUP BY ?h } } . FILTER ( ?f = ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?a WHERE { { ?j property:P37 ?a . ?a rdf:type ontology:Q34770 . ?j rdf:type ontology:Q1048835 } UNION { ?j property:P37 ?a . ?a rdf:type ontology:Q34770 . ?j rdf:type ontology:Q13220204 } } GROUP BY ?a } }
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?h WHERE { { ?x property:official_language ?h . ?h rdf:type ontology:language . ?x rdf:type ontology:political_territorial_entity } UNION { ?x property:official_language ?h . ?x rdf:type ontology:second-level_administrative_country_subdivision . ?h rdf:type ontology:language } } GROUP BY ?h } } . FILTER ( ?f = ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?a WHERE { { ?j property:official_language ?a . ?a rdf:type ontology:language . ?j rdf:type ontology:political_territorial_entity } UNION { ?j property:official_language ?a . ?a rdf:type ontology:language . ?j rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?a } }
[]
language political territorial entity second-level administrative country subdivision
Q652
SYSTEM
Italian
Q652
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
[ANSWER] is the official languages of max number of political territories or administrative country subdivisions
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?h WHERE { { ?x property:P37 ?h . ?h rdf:type ontology:Q34770 . ?x rdf:type ontology:Q1048835 } UNION { ?x property:P37 ?h . ?x rdf:type ontology:Q13220204 . ?h rdf:type ontology:Q34770 } } GROUP BY ?h } } . FILTER ( ?f = ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?a WHERE { { ?j property:P37 ?a . ?a rdf:type ontology:Q34770 . ?j rdf:type ontology:Q1048835 } UNION { ?j property:P37 ?a . ?a rdf:type ontology:Q34770 . ?j rdf:type ontology:Q13220204 } } GROUP BY ?a } }
Italian
Italian is the official languages of max number of political territories or administrative country subdivisions
Italian
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?h WHERE { { ?x property:official_language ?h . ?h rdf:type ontology:language . ?x rdf:type ontology:political_territorial_entity } UNION { ?x property:official_language ?h . ?x rdf:type ontology:second-level_administrative_country_subdivision . ?h rdf:type ontology:language } } GROUP BY ?h } } . FILTER ( ?f = ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?a WHERE { { ?j property:official_language ?a . ?a rdf:type ontology:language . ?j rdf:type ontology:political_territorial_entity } UNION { ?j property:official_language ?a . ?a rdf:type ontology:language . ?j rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?a } }
[]