Simple Question (Direct)
Simple Question
Q879020
P102
Q7210356
USER
Which party is Alfredo Baldomir affiliated with ?
(Q879020,P102,c(Q7210356))
action filter_type
action find
entity Q879020
relation P102
type Q7210356
['Q879020', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q7210356 . resource:Q879020 property:P102 ?h }
Alfredo Baldomir
action filter_type
action find
entity Alfredo Baldomir
relation member of political party
type political organization
['Alfredo Baldomir', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_organization . resource:Alfredo_Baldomir property:member_of_political_party ?h }
[]
political organization
Q1430823
SYSTEM
Colorado Party
Q1430823
(Q879020,P102,c(Q7210356))
action filter_type
action find
entity Q879020
relation P102
type Q7210356
Alfredo Baldomir is affiliated with [ANSWER]
['Q879020', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q7210356 . resource:Q879020 property:P102 ?h }
Colorado Party
Alfredo Baldomir is affiliated with Colorado Party
Colorado Party
action filter_type
action find
entity Alfredo Baldomir
relation member of political party
type political organization
['Alfredo Baldomir', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_organization . resource:Alfredo_Baldomir property:member_of_political_party ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q879020
P106
Q12737077
USER
Which occupations have that person as his/her 's career ?
(Q1430823,P106,c(Q12737077))
action filter_type
action find
entity Q879020
relation P106
type Q12737077
['Q1430823', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q879020 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Alfredo Baldomir
action filter_type
action find
entity Alfredo Baldomir
relation occupation
type occupation
['Colorado Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Alfredo_Baldomir property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q42973 Q82955 Q47064
SYSTEM
architect, politician, military personnel
Q42973 Q82955 Q47064
(Q1430823,P106,c(Q12737077))
action filter_type
action find
entity Q879020
relation P106
type Q12737077
[ANSWERS] have that person as his/her 's career
['Q1430823', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q879020 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
architect politician military personnel
Architect, politician and military personnel have that person as his/her 's career
architect politician military personnel
action filter_type
action find
entity Alfredo Baldomir
relation occupation
type occupation
['Colorado Party', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Alfredo_Baldomir property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q879020
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q42973,P19,c(Q56061)) (Q82955,P19,c(Q56061)) (Q47064,P19,c(Q56061))
action filter_type
action find
entity Q879020
relation P19
type Q56061
['Q42973', 'P19', {'concept': 'Q56061'}] ['Q82955', 'P19', {'concept': 'Q56061'}] ['Q47064', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q879020 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Alfredo Baldomir
action filter_type
action find
entity Alfredo Baldomir
relation place of birth
type administrative territorial entity
['architect', 'place of birth', {'concept': 'administrative territorial entity'}] ['politician', 'place of birth', {'concept': 'administrative territorial entity'}] ['military personnel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Alfredo_Baldomir property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q309442
SYSTEM
Paysandú
Q309442
(Q42973,P19,c(Q56061)) (Q82955,P19,c(Q56061)) (Q47064,P19,c(Q56061))
action filter_type
action find
entity Q879020
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q42973', 'P19', {'concept': 'Q56061'}] ['Q82955', 'P19', {'concept': 'Q56061'}] ['Q47064', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q879020 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Paysandú
Paysandú is the birthplace of that person
Paysandú
action filter_type
action find
entity Alfredo Baldomir
relation place of birth
type administrative territorial entity
['architect', 'place of birth', {'concept': 'administrative territorial entity'}] ['politician', 'place of birth', {'concept': 'administrative territorial entity'}] ['military personnel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Alfredo_Baldomir property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q309442 Q77 Q118139
P17
Q15617994
USER
Is that administrative territory present in Uruguay and Bippen ?
(Q309442,P17,Q77) (Q309442,P17,Q118139)
action is_in
entity Q309442
action intersection
action find_reverse
entity Q77
relation P17
action find_reverse
entity Q118139
relation P17
['Q309442', 'P17', 'Q77'] ['Q309442', 'P17', 'Q118139']
ASK WHERE { resource:Q309442 property:P17 resource:Q77 . resource:Q309442 property:P17 resource:Q118139 }
Paysandú Uruguay Bippen
action is_in
entity Paysandú
action intersection
action find_reverse
entity Uruguay
relation country
action find_reverse
entity Bippen
relation country
['Paysandú', 'country', 'Uruguay'] ['Paysandú', 'country', 'Bippen']
ASK WHERE { resource:Paysandú property:country resource:Uruguay . resource:Paysandú property:country resource:Bippen }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q309442,P17,Q77) (Q309442,P17,Q118139)
action is_in
entity Q309442
action intersection
action find_reverse
entity Q77
relation P17
action find_reverse
entity Q118139
relation P17
[ANSWER]
['Q309442', 'P17', 'Q77'] ['Q309442', 'P17', 'Q118139']
ASK WHERE { resource:Q309442 property:P17 resource:Q77 . resource:Q309442 property:P17 resource:Q118139 }
YES and NO respectively
action is_in
entity Paysandú
action intersection
action find_reverse
entity Uruguay
relation country
action find_reverse
entity Bippen
relation country
['Paysandú', 'country', 'Uruguay'] ['Paysandú', 'country', 'Bippen']
ASK WHERE { resource:Paysandú property:country resource:Uruguay . resource:Paysandú property:country resource:Bippen }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q309442
P1376
Q56059
USER
Which department of Uruguay has Paysandú has its center of administration ?
(Q309442,P1376,c(Q56059))
action filter_type
action find
entity Q309442
relation P1376
type Q56059
['Q309442', 'P1376', {'concept': 'Q56059'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56059 . resource:Q309442 property:P1376 ?t }
Paysandú
action filter_type
action find
entity Paysandú
relation capital of
type department of Uruguay
['Paysandú', 'capital of', {'concept': 'department of Uruguay'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:department_of_Uruguay . resource:Paysandú property:capital_of ?t }
[]
department of Uruguay
Q16576
SYSTEM
Paysandú Department
Q16576
(Q309442,P1376,c(Q56059))
action filter_type
action find
entity Q309442
relation P1376
type Q56059
[ANSWER] has Paysandú has its center of administration
['Q309442', 'P1376', {'concept': 'Q56059'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56059 . resource:Q309442 property:P1376 ?t }
Paysandú Department
Paysandú Department has Paysandú has its center of administration
Paysandú Department
action filter_type
action find
entity Paysandú
relation capital of
type department of Uruguay
['Paysandú', 'capital of', {'concept': 'department of Uruguay'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:department_of_Uruguay . resource:Paysandú property:capital_of ?t }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q16576 Q77
P17
Q15617994
USER
Is that department of Uruguay located in Uruguay ?
(Q16576,P17,Q77)
action is_in
entity Q77
action find
entity Q16576
relation P17
['Q16576', 'P17', 'Q77']
ASK WHERE { resource:Q16576 property:P17 resource:Q77 }
Paysandú Department Uruguay
action is_in
entity Uruguay
action find
entity Paysandú Department
relation country
['Paysandú Department', 'country', 'Uruguay']
ASK WHERE { resource:Paysandú_Department property:country resource:Uruguay }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q16576,P17,Q77)
action is_in
entity Q77
action find
entity Q16576
relation P17
[ANSWER]
['Q16576', 'P17', 'Q77']
ASK WHERE { resource:Q16576 property:P17 resource:Q77 }
Yes
action is_in
entity Uruguay
action find
entity Paysandú Department
relation country
['Paysandú Department', 'country', 'Uruguay']
ASK WHERE { resource:Paysandú_Department property:country resource:Uruguay }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1430823 Q77 Q47150
P17
Q15617994
USER
Is Colorado Party located in Uruguay and Lurago d'Erba ?
(Q1430823,P17,Q77) (Q1430823,P17,Q47150)
action is_in
entity Q1430823
action intersection
action find_reverse
entity Q77
relation P17
action find_reverse
entity Q47150
relation P17
['Q1430823', 'P17', 'Q77'] ['Q1430823', 'P17', 'Q47150']
ASK WHERE { resource:Q1430823 property:P17 resource:Q77 . resource:Q1430823 property:P17 resource:Q47150 }
Colorado Party Uruguay Lurago d'Erba
action is_in
entity Colorado Party
action intersection
action find_reverse
entity Uruguay
relation country
action find_reverse
entity Lurago d'Erba
relation country
['Colorado Party', 'country', 'Uruguay'] ['Colorado Party', 'country', "Lurago d'Erba"]
ASK WHERE { resource:Colorado_Party property:country resource:Uruguay . resource:Colorado_Party property:country resource:Lurago_d'Erba }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1430823,P17,Q77) (Q1430823,P17,Q47150)
action is_in
entity Q1430823
action intersection
action find_reverse
entity Q77
relation P17
action find_reverse
entity Q47150
relation P17
[ANSWER]
['Q1430823', 'P17', 'Q77'] ['Q1430823', 'P17', 'Q47150']
ASK WHERE { resource:Q1430823 property:P17 resource:Q77 . resource:Q1430823 property:P17 resource:Q47150 }
YES and NO respectively
action is_in
entity Colorado Party
action intersection
action find_reverse
entity Uruguay
relation country
action find_reverse
entity Lurago d'Erba
relation country
['Colorado Party', 'country', 'Uruguay'] ['Colorado Party', 'country', "Lurago d'Erba"]
ASK WHERE { resource:Colorado_Party property:country resource:Uruguay . resource:Colorado_Party property:country resource:Lurago_d'Erba }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q822146
P180
Q12737077 Q386724 Q2342494
USER
How many occupations are depicted in greater number of works and collectables than lyricist ?
(c(Q386724)|c(Q2342494),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q822146
relation P180
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { { { ?j rdf:type ontology:Q386724 } UNION { ?j rdf:type ontology:Q2342494 } } . ?j property:P180 resource:Q822146 } } . FILTER ( ?f > ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?p WHERE { { ?s property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q386724 } UNION { ?s property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?p } }
lyricist
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity lyricist
relation depicts
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { { { ?j rdf:type ontology:work } UNION { ?j rdf:type ontology:collectable } } . ?j property:depicts resource:lyricist } } . FILTER ( ?f > ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?p WHERE { { ?s property:depicts ?p . ?p rdf:type ontology:occupation . ?s rdf:type ontology:work } UNION { ?s property:depicts ?p . ?p rdf:type ontology:occupation . ?s rdf:type ontology:collectable } } GROUP BY ?p } }
[]
occupation work collectable
SYSTEM
6
Q11900058 Q843281 Q54128 Q2730732 Q170779 Q42603
(c(Q386724)|c(Q2342494),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q822146
relation P180
type Q386724
type Q2342494
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { { { ?j rdf:type ontology:Q386724 } UNION { ?j rdf:type ontology:Q2342494 } } . ?j property:P180 resource:Q822146 } } . FILTER ( ?f > ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?p WHERE { { ?s property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q386724 } UNION { ?s property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?p } }
explorer hobo domestic worker equestrian Kassandra priest
6
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity lyricist
relation depicts
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) WHERE { { { ?j rdf:type ontology:work } UNION { ?j rdf:type ontology:collectable } } . ?j property:depicts resource:lyricist } } . FILTER ( ?f > ?u ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?p WHERE { { ?s property:depicts ?p . ?p rdf:type ontology:occupation . ?s rdf:type ontology:work } UNION { ?s property:depicts ?p . ?p rdf:type ontology:occupation . ?s rdf:type ontology:collectable } } GROUP BY ?p } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q17126809
P180
Q12737077 Q386724 Q2342494
USER
And how about rescuer?
(c(Q386724)|c(Q2342494),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q17126809
relation P180
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { FILTER ( ?l > ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P180 resource:Q17126809 . { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?f WHERE { { ?x property:P180 ?f . ?f rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q386724 } UNION { ?x property:P180 ?f . ?x rdf:type ontology:Q2342494 . ?f rdf:type ontology:Q12737077 } } GROUP BY ?f } }
rescuer
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity rescuer
relation depicts
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { FILTER ( ?l > ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:depicts resource:rescuer . { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:work ) ( ontology:collectable ) } } } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?f WHERE { { ?x property:depicts ?f . ?f rdf:type ontology:occupation . ?x rdf:type ontology:work } UNION { ?x property:depicts ?f . ?x rdf:type ontology:collectable . ?f rdf:type ontology:occupation } } GROUP BY ?f } }
[]
occupation work collectable
SYSTEM
6
Q11900058 Q843281 Q54128 Q2730732 Q170779 Q42603
(c(Q386724)|c(Q2342494),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q17126809
relation P180
type Q386724
type Q2342494
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { FILTER ( ?l > ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P180 resource:Q17126809 . { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?f WHERE { { ?x property:P180 ?f . ?f rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q386724 } UNION { ?x property:P180 ?f . ?x rdf:type ontology:Q2342494 . ?f rdf:type ontology:Q12737077 } } GROUP BY ?f } }
explorer hobo domestic worker equestrian Kassandra priest
6
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity rescuer
relation depicts
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { FILTER ( ?l > ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:depicts resource:rescuer . { ?v rdf:type ?g . VALUES ( ?g ) { ( ontology:work ) ( ontology:collectable ) } } } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) ?f WHERE { { ?x property:depicts ?f . ?f rdf:type ontology:occupation . ?x rdf:type ontology:work } UNION { ?x property:depicts ?f . ?x rdf:type ontology:collectable . ?f rdf:type ontology:occupation } } GROUP BY ?f } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q677191
P407
Q34770
USER
Which language is James composed in ?
(Q677191,P407,c(Q34770))
action filter_type
action find
entity Q677191
relation P407
type Q34770
['Q677191', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q677191 property:P407 ?m . ?m rdf:type ontology:Q34770 }
James
action filter_type
action find
entity James
relation language of work or name
type language
['James', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:James property:language_of_work_or_name ?m . ?m rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q677191,P407,c(Q34770))
action filter_type
action find
entity Q677191
relation P407
type Q34770
James is composed in [ANSWER]
['Q677191', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q677191 property:P407 ?m . ?m rdf:type ontology:Q34770 }
English
James is composed in English
English
action filter_type
action find
entity James
relation language of work or name
type language
['James', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:James property:language_of_work_or_name ?m . ?m rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1771716
P282
Q2001982 Q34770
USER
How many notations are utilized as the script for more number of languages than Pahlavi scripts ?
(c(Q34770),P282,c(Q2001982))
action count
action greater
action find_reverse_tuple_counts
relation P282
type Q2001982
type Q34770
action count
action filter_type
action find
entity Q1771716
relation P282
type Q2001982
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q2001982'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { resource:Q1771716 property:P282 ?i . ?i rdf:type ontology:Q2001982 } } . FILTER ( ?n > ?x ) . { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:P282 ?h . ?h rdf:type ontology:Q2001982 . ?u rdf:type ontology:Q34770 } GROUP BY ?h } }
Pahlavi scripts
action count
action greater
action find_reverse_tuple_counts
relation writing system
type notation
type language
action count
action filter_type
action find
entity Pahlavi scripts
relation writing system
type notation
[{'concept': 'language'}, 'writing system', {'concept': 'notation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { resource:Pahlavi_scripts property:writing_system ?i . ?i rdf:type ontology:notation } } . FILTER ( ?n > ?x ) . { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:writing_system ?h . ?h rdf:type ontology:notation . ?u rdf:type ontology:language } GROUP BY ?h } }
[]
notation language
SYSTEM
2
Q8216 Q401
(c(Q34770),P282,c(Q2001982))
action count
action greater
action find_reverse_tuple_counts
relation P282
type Q2001982
type Q34770
action count
action filter_type
action find
entity Q1771716
relation P282
type Q2001982
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q2001982'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { resource:Q1771716 property:P282 ?i . ?i rdf:type ontology:Q2001982 } } . FILTER ( ?n > ?x ) . { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:P282 ?h . ?h rdf:type ontology:Q2001982 . ?u rdf:type ontology:Q34770 } GROUP BY ?h } }
Greek alphabet cuneiform
2
action count
action greater
action find_reverse_tuple_counts
relation writing system
type notation
type language
action count
action filter_type
action find
entity Pahlavi scripts
relation writing system
type notation
[{'concept': 'language'}, 'writing system', {'concept': 'notation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { resource:Pahlavi_scripts property:writing_system ?i . ?i rdf:type ontology:notation } } . FILTER ( ?n > ?x ) . { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?n ) WHERE { ?u property:writing_system ?h . ?h rdf:type ontology:notation . ?u rdf:type ontology:language } GROUP BY ?h } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q36206
P37
Q34770 Q1048835 Q13220204
USER
Which languages are the official languages of around the same number of political territories and administrative country subdivisions as Lak ?
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q36206
relation P37
type Q1048835
type Q13220204
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?c = ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P37 resource:Q36206 . { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?j } }
Lak
action approx
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
action count
action filter_multi_types
action find_reverse
entity Lak
relation official language
type political territorial entity
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?c = ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:official_language resource:Lak . { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ?t . VALUES ( ?t ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?j } }
[]
language political territorial entity second-level administrative country subdivision
Q1860 Q9056 Q33251
SYSTEM
English, Czech, Church Slavonic
Q9056 Q1860 Q33251 Q13211 Q3110592 Q36206 Q8752 Q1321 Q36880 Q33976 Q35499 Q397 Q35726 Q8785 Q25164
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q36206
relation P37
type Q1048835
type Q13220204
[ANSWERS] are the official languages of around the same number of political territories and administrative country subdivisions as Lak
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?c = ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P37 resource:Q36206 . { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?j } }
Czech English Church Slavonic Ruthenian written Chinese Lak Basque Spanish Bulgar language Sardinian language Old Church Slavonic Latin Etruscan Armenian Nynorsk
English, Czech and Church Slavonic are the official languages of around the same number of political territories and administrative country subdivisions as Lak
English Czech Church Slavonic
action approx
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
action count
action filter_multi_types
action find_reverse
entity Lak
relation official language
type political territorial entity
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?c = ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:official_language resource:Lak . { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } } } . { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?c ) WHERE { ?a rdf:type ?t . VALUES ( ?t ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?j } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1860
P37
Q34770 Q1048835 Q13220204
USER
And what about English?
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q1860
relation P37
type Q1048835
type Q13220204
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?k WHERE { { ?k rdf:type ontology:Q34770 . ?t rdf:type ontology:Q1048835 . ?t property:P37 ?k } UNION { ?k rdf:type ontology:Q34770 . ?t rdf:type ontology:Q13220204 . ?t property:P37 ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:P37 resource:Q1860 . { { ?n rdf:type ontology:Q1048835 } UNION { ?n rdf:type ontology:Q13220204 } } } } . FILTER ( ?u = ?h ) }
English
action approx
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
action count
action filter_multi_types
action find_reverse
entity English
relation official language
type political territorial entity
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?k WHERE { { ?k rdf:type ontology:language . ?t rdf:type ontology:political_territorial_entity . ?t property:official_language ?k } UNION { ?k rdf:type ontology:language . ?t rdf:type ontology:second-level_administrative_country_subdivision . ?t property:official_language ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:official_language resource:English . { { ?n rdf:type ontology:political_territorial_entity } UNION { ?n rdf:type ontology:second-level_administrative_country_subdivision } } } } . FILTER ( ?u = ?h ) }
[]
language political territorial entity second-level administrative country subdivision
Q1860 Q9056 Q33251
SYSTEM
English, Czech, Church Slavonic
Q9056 Q1860 Q33251 Q13211 Q3110592 Q36206 Q8752 Q1321 Q36880 Q33976 Q35499 Q397 Q35726 Q8785 Q25164
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q1860
relation P37
type Q1048835
type Q13220204
[ANSWERS]
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?k WHERE { { ?k rdf:type ontology:Q34770 . ?t rdf:type ontology:Q1048835 . ?t property:P37 ?k } UNION { ?k rdf:type ontology:Q34770 . ?t rdf:type ontology:Q13220204 . ?t property:P37 ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:P37 resource:Q1860 . { { ?n rdf:type ontology:Q1048835 } UNION { ?n rdf:type ontology:Q13220204 } } } } . FILTER ( ?u = ?h ) }
Czech English Church Slavonic Ruthenian written Chinese Lak Basque Spanish Bulgar language Sardinian language Old Church Slavonic Latin Etruscan Armenian Nynorsk
English Czech Church Slavonic
action approx
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
action count
action filter_multi_types
action find_reverse
entity English
relation official language
type political territorial entity
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?k WHERE { { ?k rdf:type ontology:language . ?t rdf:type ontology:political_territorial_entity . ?t property:official_language ?k } UNION { ?k rdf:type ontology:language . ?t rdf:type ontology:second-level_administrative_country_subdivision . ?t property:official_language ?k } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:official_language resource:English . { { ?n rdf:type ontology:political_territorial_entity } UNION { ?n rdf:type ontology:second-level_administrative_country_subdivision } } } } . FILTER ( ?u = ?h ) }
[]