Simple Question (Direct)
Simple Question
Q5931750
P410
Q4189293
USER
Which title was the military rank held by Joaquín Bassols ?
(Q5931750,P410,c(Q4189293))
action filter_type
action find
entity Q5931750
relation P410
type Q4189293
['Q5931750', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?g WHERE { resource:Q5931750 property:P410 ?g . ?g rdf:type ontology:Q4189293 }
Joaquín Bassols
action filter_type
action find
entity Joaquín Bassols
relation military rank
type title
['Joaquín Bassols', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?g WHERE { resource:Joaquín_Bassols property:military_rank ?g . ?g rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q5931750,P410,c(Q4189293))
action filter_type
action find
entity Q5931750
relation P410
type Q4189293
[ANSWER] was the military rank held by Joaquín Bassols
['Q5931750', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?g WHERE { resource:Q5931750 property:P410 ?g . ?g rdf:type ontology:Q4189293 }
general officer
General officer was the military rank held by Joaquín Bassols
general officer
action filter_type
action find
entity Joaquín Bassols
relation military rank
type title
['Joaquín Bassols', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?g WHERE { resource:Joaquín_Bassols property:military_rank ?g . ?g rdf:type ontology:title }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5931750
P937
Q56061
USER
Where did Joaquín Bassols work ?
(Q5931750,P937,c(Q56061))
action filter_type
action find
entity Q5931750
relation P937
type Q56061
['Q5931750', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q5931750 property:P937 ?l }
Joaquín Bassols
action filter_type
action find
entity Joaquín Bassols
relation work location
type administrative territorial entity
['Joaquín Bassols', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Joaquín_Bassols property:work_location ?l }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q5931750,P937,c(Q56061))
action filter_type
action find
entity Q5931750
relation P937
type Q56061
Joaquín Bassols worked in [ANSWER]
['Q5931750', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q5931750 property:P937 ?l }
Madrid
Joaquín Bassols worked in Madrid
Madrid
action filter_type
action find
entity Joaquín Bassols
relation work location
type administrative territorial entity
['Joaquín Bassols', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Joaquín_Bassols property:work_location ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5931750
P1412
Q34770
USER
Which language can Joaquín Bassols read ?
(Q5931750,P1412,c(Q34770))
action filter_type
action find
entity Q5931750
relation P1412
type Q34770
['Q5931750', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q5931750 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Joaquín Bassols
action filter_type
action find
entity Joaquín Bassols
relation languages spoken, written or signed
type language
['Joaquín Bassols', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Joaquín_Bassols property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5931750,P1412,c(Q34770))
action filter_type
action find
entity Q5931750
relation P1412
type Q34770
Joaquín Bassols can read in [ANSWER]
['Q5931750', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q5931750 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Spanish
Joaquín Bassols can read in Spanish
Spanish
action filter_type
action find
entity Joaquín Bassols
relation languages spoken, written or signed
type language
['Joaquín Bassols', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Joaquín_Bassols property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5931750
P39
Q12737077
USER
What were the positions for which that person were appointed ?
(Q1321,P39,c(Q12737077))
action filter_type
action find
entity Q5931750
relation P39
type Q12737077
['Q1321', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q5931750 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Joaquín Bassols
action filter_type
action find
entity Joaquín Bassols
relation position held
type occupation
['Spanish', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Joaquín_Bassols property:position_held ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q18171345 Q19323171
SYSTEM
Member of the Congress of Deputies of Spain, Member of the Senate of Spain
Q18171345 Q19323171
(Q1321,P39,c(Q12737077))
action filter_type
action find
entity Q5931750
relation P39
type Q12737077
[ANSWERS]
['Q1321', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q5931750 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Member of the Congress of Deputies of Spain Member of the Senate of Spain
Member of the Congress of Deputies of Spain and Member of the Senate of Spain
Member of the Congress of Deputies of Spain Member of the Senate of Spain
action filter_type
action find
entity Joaquín Bassols
relation position held
type occupation
['Spanish', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Joaquín_Bassols property:position_held ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5931750
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q18171345,P19,c(Q56061)) (Q19323171,P19,c(Q56061))
action filter_type
action find
entity Q5931750
relation P19
type Q56061
['Q18171345', 'P19', {'concept': 'Q56061'}] ['Q19323171', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q5931750 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Joaquín Bassols
action filter_type
action find
entity Joaquín Bassols
relation place of birth
type administrative territorial entity
['Member of the Congress of Deputies of Spain', 'place of birth', {'concept': 'administrative territorial entity'}] ['Member of the Senate of Spain', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Joaquín_Bassols property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q18171345,P19,c(Q56061)) (Q19323171,P19,c(Q56061))
action filter_type
action find
entity Q5931750
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q18171345', 'P19', {'concept': 'Q56061'}] ['Q19323171', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q5931750 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Barcelona
Barcelona is the place of birth of that person
Barcelona
action filter_type
action find
entity Joaquín Bassols
relation place of birth
type administrative territorial entity
['Member of the Congress of Deputies of Spain', 'place of birth', {'concept': 'administrative territorial entity'}] ['Member of the Senate of Spain', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Joaquín_Bassols property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P417
Q1445650 Q56061
USER
Which administrative territories have more number of holidays as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q1445650))
action greater
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_type
action find
entity Q1492
relation P417
type Q56061
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?e ) WHERE { ?m property:P417 ?u . ?m rdf:type ontology:Q56061 . ?u rdf:type ontology:Q1445650 } GROUP BY ?m } . FILTER ( ?e > ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Q1492 property:P417 ?o . ?o rdf:type ontology:Q56061 } } }
action greater
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_type
action find
entity Barcelona
relation patron saint
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?e ) WHERE { ?m property:patron_saint ?u . ?m rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:holiday } GROUP BY ?m } . FILTER ( ?e > ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Barcelona property:patron_saint ?o . ?o rdf:type ontology:administrative_territorial_entity } } }
[]
holiday administrative territorial entity
Q433066 Q428018 Q495798
SYSTEM
Moos in Passeier, Mölten, Brolo
Q491588 Q495798 Q428018 Q52215 Q433066
(c(Q56061),P417,c(Q1445650))
action greater
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_type
action find
entity Q1492
relation P417
type Q56061
[ANSWERS] have more number of holidays as their patron saint than that administrative territory
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?e ) WHERE { ?m property:P417 ?u . ?m rdf:type ontology:Q56061 . ?u rdf:type ontology:Q1445650 } GROUP BY ?m } . FILTER ( ?e > ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Q1492 property:P417 ?o . ?o rdf:type ontology:Q56061 } } }
Camporeale Brolo Mölten Tuglie Moos in Passeier
Moos in Passeier, Mölten and Brolo have more number of holidays as their patron saint than that administrative territory
Moos in Passeier Mölten Brolo
action greater
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_type
action find
entity Barcelona
relation patron saint
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?e ) WHERE { ?m property:patron_saint ?u . ?m rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:holiday } GROUP BY ?m } . FILTER ( ?e > ?l ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Barcelona property:patron_saint ?o . ?o rdf:type ontology:administrative_territorial_entity } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1492
P190
Q13220204 Q56061
USER
How many administrative country subdivisions or administrative territories are sister towns of Barcelona ?
(Q1492,P190,c(Q13220204)) (Q1492,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q1492
relation P190
type Q13220204
action filter_type
action find
entity Q1492
relation P190
type Q56061
['Q1492', 'P190', {'concept': 'Q13220204'}] ['Q1492', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { resource:Q1492 property:P190 ?d . ?d rdf:type ontology:Q13220204 } UNION { resource:Q1492 property:P190 ?d . ?d rdf:type ontology:Q56061 } }
Barcelona
action count
action union
action filter_type
action find
entity Barcelona
relation sister city
type second-level administrative country subdivision
action filter_type
action find
entity Barcelona
relation sister city
type administrative territorial entity
['Barcelona', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { resource:Barcelona property:sister_city ?d . ?d rdf:type ontology:second-level_administrative_country_subdivision } UNION { resource:Barcelona property:sister_city ?d . ?d rdf:type ontology:administrative_territorial_entity } }
[]
second-level administrative country subdivision administrative territorial entity
SYSTEM
22
Q8717 Q8686 Q48278 Q12892 Q365 Q100 Q52535 Q42053 Q340 Q6506 Q34820 Q1524 Q1563 Q48320 Q33935 Q3561 Q85 Q47492 Q174 Q8678 Q33986 Q6441
(Q1492,P190,c(Q13220204)) (Q1492,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q1492
relation P190
type Q13220204
action filter_type
action find
entity Q1492
relation P190
type Q56061
[ANSWER]
['Q1492', 'P190', {'concept': 'Q13220204'}] ['Q1492', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { resource:Q1492 property:P190 ?d . ?d rdf:type ontology:Q13220204 } UNION { resource:Q1492 property:P190 ?d . ?d rdf:type ontology:Q56061 } }
Seville Shanghai Antioquia - Medellín Antwerp Cologne Boston Rosario Isfahan Montreal Varna Santo Domingo Athens Havana Kōbe Tel Aviv Algiers Cairo Gaza City São Paulo Rio de Janeiro Valparaíso Montpellier
22
action count
action union
action filter_type
action find
entity Barcelona
relation sister city
type second-level administrative country subdivision
action filter_type
action find
entity Barcelona
relation sister city
type administrative territorial entity
['Barcelona', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { resource:Barcelona property:sister_city ?d . ?d rdf:type ontology:second-level_administrative_country_subdivision } UNION { resource:Barcelona property:sister_city ?d . ?d rdf:type ontology:administrative_territorial_entity } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q133485
P921
Q12737077 Q386724 Q2342494
USER
Which occupations were the main subjects of greater number of works and collectables 's work than rabbi ?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q133485
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?m WHERE { { ?d property:P921 ?m . ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q386724 } UNION { ?d property:P921 ?m . ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q2342494 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P921 resource:Q133485 . { VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?u rdf:type ?y } } } . FILTER ( ?e > ?i ) }
rabbi
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity rabbi
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?m WHERE { { ?d property:main_subject ?m . ?m rdf:type ontology:occupation . ?d rdf:type ontology:work } UNION { ?d property:main_subject ?m . ?m rdf:type ontology:occupation . ?d rdf:type ontology:collectable } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:main_subject resource:rabbi . { VALUES ( ?y ) { ( ontology:work ) ( ontology:collectable ) } . ?u rdf:type ?y } } } . FILTER ( ?e > ?i ) }
[]
occupation work collectable
Q42973 Q18145518 Q18220900
SYSTEM
architect, Member of the New Zealand House of Representatives, Member of the South Australian House of Assembly
Q39631 Q11631 Q774306 Q83307 Q4610556 Q18145518 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q16746569 Q16003605 Q49757 Q1238570 Q2259532 Q16003532
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q133485
relation P921
type Q386724
type Q2342494
[ANSWERS] were the main subjects of greater number of works and collectables 's work than rabbi
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?m WHERE { { ?d property:P921 ?m . ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q386724 } UNION { ?d property:P921 ?m . ?m rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q2342494 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P921 resource:Q133485 . { VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?u rdf:type ?y } } } . FILTER ( ?e > ?i ) }
physician astronaut surgeon minister model Member of the New Zealand House of Representatives politician test pilot architect association football player ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly high school student elementary school student poet political scientist cleric middle school student
Architect, Member of the New Zealand House of Representatives and Member of the South Australian House of Assembly were the main subjects of greater number of works and collectables 's work than rabbi
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity rabbi
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?m WHERE { { ?d property:main_subject ?m . ?m rdf:type ontology:occupation . ?d rdf:type ontology:work } UNION { ?d property:main_subject ?m . ?m rdf:type ontology:occupation . ?d rdf:type ontology:collectable } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:main_subject resource:rabbi . { VALUES ( ?y ) { ( ontology:work ) ( ontology:collectable ) } . ?u rdf:type ?y } } } . FILTER ( ?e > ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1058375
P921
Q12737077 Q386724 Q2342494
USER
And how about double agent?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1058375
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:P921 resource:Q1058375 . { ?y rdf:type ?j . VALUES ( ?j ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?k > ?n ) }
double agent
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity double agent
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:work ) ( ontology:collectable ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:main_subject resource:double_agent . { ?y rdf:type ?j . VALUES ( ?j ) { ( ontology:work ) ( ontology:collectable ) } } } } . FILTER ( ?k > ?n ) }
[]
occupation work collectable
Q42973 Q18145518 Q18220900
SYSTEM
architect, Member of the New Zealand House of Representatives, Member of the South Australian House of Assembly
Q39631 Q11631 Q774306 Q83307 Q4610556 Q18145518 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q16746569 Q16003605 Q49757 Q1238570 Q2259532 Q16003532
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1058375
relation P921
type Q386724
type Q2342494
[ANSWERS]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:P921 resource:Q1058375 . { ?y rdf:type ?j . VALUES ( ?j ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?k > ?n ) }
physician astronaut surgeon minister model Member of the New Zealand House of Representatives politician test pilot architect association football player ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly high school student elementary school student poet political scientist cleric middle school student
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity double agent
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?k ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:work ) ( ontology:collectable ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:main_subject resource:double_agent . { ?y rdf:type ?j . VALUES ( ?j ) { ( ontology:work ) ( ontology:collectable ) } } } } . FILTER ( ?k > ?n ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18220900
P17
Q1048835
USER
Which political territory is that occupation situated in ?
(Q18220900,P17,c(Q1048835))
action filter_type
action find
entity Q18220900
relation P17
type Q1048835
['Q18220900', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q18220900 property:P17 ?l }
Member of the South Australian House of Assembly
action filter_type
action find
entity Member of the South Australian House of Assembly
relation country
type political territorial entity
['Member of the South Australian House of Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Member_of_the_South_Australian_House_of_Assembly property:country ?l }
[]
political territorial entity
Clarification for simple ques.
Q18220900
SYSTEM
Did you mean Member of the South Australian House of Assembly ?
Q42973 Q18145518 Q18220900
(Q42973,P17,c(Q1048835)) (Q18145518,P17,c(Q1048835)) (Q18220900,P17,c(Q1048835))
[ANSWER]
['Q42973', 'P17', {'concept': 'Q1048835'}] ['Q18145518', 'P17', {'concept': 'Q1048835'}] ['Q18220900', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q18220900 property:P17 ?l }
architect Member of the New Zealand House of Representatives Member of the South Australian House of Assembly
Did you mean Member of the South Australian House of Assembly ?
Member of the South Australian House of Assembly
['architect', 'country', {'concept': 'political territorial entity'}] ['Member of the New Zealand House of Representatives', 'country', {'concept': 'political territorial entity'}] ['Member of the South Australian House of Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Member_of_the_South_Australian_House_of_Assembly property:country ?l }
[]
Simple Question (Coreferenced)
USER
Yes
(Q18220900,P17,c(Q1048835))
['Q18220900', 'P17', {'concept': 'Q1048835'}]
['Member of the South Australian House of Assembly', 'country', {'concept': 'political territorial entity'}]
[]
Q408
SYSTEM
Australia
Q408
(Q18220900,P17,c(Q1048835))
action filter_type
action find
entity Q18220900
relation P17
type Q1048835
That occupation is situated in [ANSWER]
['Q18220900', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . resource:Q18220900 property:P17 ?l }
Australia
That occupation is situated in Australia
Australia
action filter_type
action find
entity Member of the South Australian House of Assembly
relation country
type political territorial entity
['Member of the South Australian House of Assembly', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . resource:Member_of_the_South_Australian_House_of_Assembly property:country ?l }
[]