Simple Question (Direct)
Simple Question
Q1729443
P39
Q12737077
USER
Which occupation was a position held by Karin Hakl ?
(Q1729443,P39,c(Q12737077))
action filter_type
action find
entity Q1729443
relation P39
type Q12737077
['Q1729443', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q1729443 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Karin Hakl
action filter_type
action find
entity Karin Hakl
relation position held
type occupation
['Karin Hakl', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Karin_Hakl property:position_held ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q17535155
SYSTEM
Member of the National Council of Austria
Q17535155
(Q1729443,P39,c(Q12737077))
action filter_type
action find
entity Q1729443
relation P39
type Q12737077
[ANSWER] was a position held by Karin Hakl
['Q1729443', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q1729443 property:P39 ?n . ?n rdf:type ontology:Q12737077 }
Member of the National Council of Austria
Member of the National Council of Austria was a position held by Karin Hakl
Member of the National Council of Austria
action filter_type
action find
entity Karin Hakl
relation position held
type occupation
['Karin Hakl', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Karin_Hakl property:position_held ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1729443
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q17535155,P102,c(Q7210356))
action filter_type
action find
entity Q1729443
relation P102
type Q7210356
['Q17535155', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q1729443 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Karin Hakl
action filter_type
action find
entity Karin Hakl
relation member of political party
type political organization
['Member of the National Council of Austria', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Karin_Hakl property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q186867
SYSTEM
Austrian People's Party
Q186867
(Q17535155,P102,c(Q7210356))
action filter_type
action find
entity Q1729443
relation P102
type Q7210356
[ANSWER] is that person a member of
['Q17535155', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q1729443 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Austrian People's Party
Austrian People's Party is that person a member of
Austrian People's Party
action filter_type
action find
entity Karin Hakl
relation member of political party
type political organization
['Member of the National Council of Austria', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Karin_Hakl property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q186867 Q1741
P159
Q56061
USER
Is Vienna the head office for that political organization located ?
(Q186867,P159,Q1741)
action is_in
entity Q1741
action find
entity Q186867
relation P159
['Q186867', 'P159', 'Q1741']
ASK WHERE { resource:Q186867 property:P159 resource:Q1741 }
Austrian People's Party Vienna
action is_in
entity Vienna
action find
entity Austrian People's Party
relation headquarters location
["Austrian People's Party", 'headquarters location', 'Vienna']
ASK WHERE { resource:Austrian_People's_Party property:headquarters_location resource:Vienna }
[]
administrative territorial entity
SYSTEM
YES
(Q186867,P159,Q1741)
action is_in
entity Q1741
action find
entity Q186867
relation P159
[ANSWER]
['Q186867', 'P159', 'Q1741']
ASK WHERE { resource:Q186867 property:P159 resource:Q1741 }
Yes
action is_in
entity Vienna
action find
entity Austrian People's Party
relation headquarters location
["Austrian People's Party", 'headquarters location', 'Vienna']
ASK WHERE { resource:Austrian_People's_Party property:headquarters_location resource:Vienna }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q973641 Q1729443
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of Karin Hakl or share border with Ontinyent ?
OR((Q1729443,P27,c(Q1048835)), (Q973641,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1729443
relation P27
action find
entity Q973641
relation P47
type Q1048835
{'OR': [['Q1729443', 'P27', {'concept': 'Q1048835'}], ['Q973641', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1729443 property:P27 ?p } UNION { resource:Q973641 property:P47 ?p } } . ?p rdf:type ontology:Q1048835 }
Ontinyent Karin Hakl
action filter_type
action union
action find
entity Karin Hakl
relation country of citizenship
action find
entity Ontinyent
relation shares border with
type political territorial entity
{'OR': [['Karin Hakl', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ontinyent', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Karin_Hakl property:country_of_citizenship ?p } UNION { resource:Ontinyent property:shares_border_with ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q574105 Q508503 Q40 Q648740 Q621626 Q1993371 Q619122 Q932861
SYSTEM
Bocairent, Aielo de Malferit, Austria, Vallada, Banyeres de Mariola, Moixent, Alfafara, Agullent
Q574105 Q508503 Q40 Q648740 Q621626 Q1993371 Q619122 Q932861
OR((Q1729443,P27,c(Q1048835)), (Q973641,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1729443
relation P27
action find
entity Q973641
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of Karin Hakl or share border with Ontinyent
{'OR': [['Q1729443', 'P27', {'concept': 'Q1048835'}], ['Q973641', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1729443 property:P27 ?p } UNION { resource:Q973641 property:P47 ?p } } . ?p rdf:type ontology:Q1048835 }
Bocairent Aielo de Malferit Austria Vallada Banyeres de Mariola Moixent Alfafara Agullent
Bocairent, Aielo de Malferit, Austria, Vallada, Banyeres de Mariola, Moixent, Alfafara and Agullent are the countries of citizenship of Karin Hakl or share border with Ontinyent
Bocairent Aielo de Malferit Austria Vallada Banyeres de Mariola Moixent Alfafara Agullent
action filter_type
action union
action find
entity Karin Hakl
relation country of citizenship
action find
entity Ontinyent
relation shares border with
type political territorial entity
{'OR': [['Karin Hakl', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ontinyent', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Karin_Hakl property:country_of_citizenship ?p } UNION { resource:Ontinyent property:shares_border_with ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q14524493 Q811430
USER
How many political territories are around 13 terrains or constructions situated in ?
(c(Q14524493)|c(Q811430),P17,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q14524493
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811430
value 13
[[{'concept': 'Q14524493'}, {'concept': 'Q811430'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?u ) WHERE { { ?c rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q14524493 . ?s property:P17 ?c } UNION { ?s property:P17 ?c . ?c rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q811430 } } GROUP BY ?c } . FILTER ( ?u = 13 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type terrain
action find_reverse_tuple_counts
relation country
type political territorial entity
type construction
value 13
[[{'concept': 'terrain'}, {'concept': 'construction'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?u ) WHERE { { ?c rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:terrain . ?s property:country ?c } UNION { ?s property:country ?c . ?c rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:construction } } GROUP BY ?c } . FILTER ( ?u = 13 ) }
[]
political territorial entity terrain construction
SYSTEM
63
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q183 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q664 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q16 Q5785 Q35 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q40 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q14524493)|c(Q811430),P17,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q14524493
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811430
value 13
[ANSWER]
[[{'concept': 'Q14524493'}, {'concept': 'Q811430'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?u ) WHERE { { ?c rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q14524493 . ?s property:P17 ?c } UNION { ?s property:P17 ?c . ?c rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q811430 } } GROUP BY ?c } . FILTER ( ?u = 13 ) }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Germany Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves New Zealand Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Canada Cayman Islands Denmark Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Austria Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
63
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type terrain
action find_reverse_tuple_counts
relation country
type political territorial entity
type construction
value 13
[[{'concept': 'terrain'}, {'concept': 'construction'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?u ) WHERE { { ?c rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:terrain . ?s property:country ?c } UNION { ?s property:country ?c . ?c rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:construction } } GROUP BY ?c } . FILTER ( ?u = 13 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P36
Q56061
USER
Which administrative territory is associated to Austria as the capital ?
(Q40,P36,c(Q56061))
action filter_type
action find
entity Q40
relation P36
type Q56061
['Q40', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q40 property:P36 ?i . ?i rdf:type ontology:Q56061 }
Austria
action filter_type
action find
entity Austria
relation capital
type administrative territorial entity
['Austria', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Austria property:capital ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741
SYSTEM
Vienna
Q1741
(Q40,P36,c(Q56061))
action filter_type
action find
entity Q40
relation P36
type Q56061
[ANSWER] is associated to Austria as the capital
['Q40', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q40 property:P36 ?i . ?i rdf:type ontology:Q56061 }
Vienna
Vienna is associated to Austria as the capital
Vienna
action filter_type
action find
entity Austria
relation capital
type administrative territorial entity
['Austria', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Austria property:capital ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1741 Q214945 Q1844
P190
Q515
USER
Is that administrative territory a sister city of Pápa and Vaduz ?
(Q1741,P190,Q214945) (Q1741,P190,Q1844)
action is_in
entity Q1741
action intersection
action find_reverse
entity Q214945
relation P190
action find_reverse
entity Q1844
relation P190
['Q1741', 'P190', 'Q214945'] ['Q1741', 'P190', 'Q1844']
ASK WHERE { resource:Q1741 property:P190 resource:Q1844 . resource:Q1741 property:P190 resource:Q214945 }
Vienna Pápa Vaduz
action is_in
entity Vienna
action intersection
action find_reverse
entity Pápa
relation sister city
action find_reverse
entity Vaduz
relation sister city
['Vienna', 'sister city', 'Pápa'] ['Vienna', 'sister city', 'Vaduz']
ASK WHERE { resource:Vienna property:sister_city resource:Vaduz . resource:Vienna property:sister_city resource:Pápa }
[]
city
SYSTEM
NO and YES respectively
(Q1741,P190,Q214945) (Q1741,P190,Q1844)
action is_in
entity Q1741
action intersection
action find_reverse
entity Q214945
relation P190
action find_reverse
entity Q1844
relation P190
[ANSWER]
['Q1741', 'P190', 'Q214945'] ['Q1741', 'P190', 'Q1844']
ASK WHERE { resource:Q1741 property:P190 resource:Q1844 . resource:Q1741 property:P190 resource:Q214945 }
NO and YES respectively
action is_in
entity Vienna
action intersection
action find_reverse
entity Pápa
relation sister city
action find_reverse
entity Vaduz
relation sister city
['Vienna', 'sister city', 'Pápa'] ['Vienna', 'sister city', 'Vaduz']
ASK WHERE { resource:Vienna property:sister_city resource:Vaduz . resource:Vienna property:sister_city resource:Pápa }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q574105 Q168376
P47
Q1048835
USER
Does Vitória have a shared border with Bocairent ?
(Q574105,P47,Q168376)
action is_in
entity Q168376
action find
entity Q574105
relation P47
['Q574105', 'P47', 'Q168376']
ASK WHERE { resource:Q574105 property:P47 resource:Q168376 }
Bocairent Vitória
action is_in
entity Vitória
action find
entity Bocairent
relation shares border with
['Bocairent', 'shares border with', 'Vitória']
ASK WHERE { resource:Bocairent property:shares_border_with resource:Vitória }
[]
political territorial entity
SYSTEM
NO
(Q574105,P47,Q168376)
action is_in
entity Q168376
action find
entity Q574105
relation P47
[ANSWER]
['Q574105', 'P47', 'Q168376']
ASK WHERE { resource:Q574105 property:P47 resource:Q168376 }
No
action is_in
entity Vitória
action find
entity Bocairent
relation shares border with
['Bocairent', 'shares border with', 'Vitória']
ASK WHERE { resource:Bocairent property:shares_border_with resource:Vitória }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q11957145
P180
Q12737077 Q18783400 Q340169
USER
How many occupations are depicted in greater number of genres of sculpture or medias than acrobat ?
(c(Q18783400)|c(Q340169),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q11957145
relation P180
type Q18783400
type Q340169
[[{'concept': 'Q18783400'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?l . VALUES ( ?l ) { ( ontology:Q18783400 ) ( ontology:Q340169 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:P180 resource:Q11957145 . { { ?v rdf:type ontology:Q340169 } UNION { ?v rdf:type ontology:Q18783400 } } } } . FILTER ( ?u > ?j ) }
acrobat
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity acrobat
relation depicts
type genre of sculpture
type media
[[{'concept': 'genre of sculpture'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?l . VALUES ( ?l ) { ( ontology:genre_of_sculpture ) ( ontology:media ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:depicts resource:acrobat . { { ?v rdf:type ontology:media } UNION { ?v rdf:type ontology:genre_of_sculpture } } } } . FILTER ( ?u > ?j ) }
[]
occupation genre of sculpture media
SYSTEM
15
Q177220 Q131512 Q2995983 Q45199 Q186360 Q733786 Q4991371 Q273108 Q589897 Q20489032 Q5716684 Q18575684 Q639669 Q384593 Q1630100
(c(Q18783400)|c(Q340169),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q11957145
relation P180
type Q18783400
type Q340169
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?l . VALUES ( ?l ) { ( ontology:Q18783400 ) ( ontology:Q340169 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:P180 resource:Q11957145 . { { ?v rdf:type ontology:Q340169 } UNION { ?v rdf:type ontology:Q18783400 } } } } . FILTER ( ?u > ?j ) }
singer farmer double-bassist sailor nurse monk soldier condottiero mahout salt pan worker dancer embroiderer musician police officer art model
15
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity acrobat
relation depicts
type genre of sculpture
type media
[[{'concept': 'genre of sculpture'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?l . VALUES ( ?l ) { ( ontology:genre_of_sculpture ) ( ontology:media ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:depicts resource:acrobat . { { ?v rdf:type ontology:media } UNION { ?v rdf:type ontology:genre_of_sculpture } } } } . FILTER ( ?u > ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1401609
P180
Q12737077 Q18783400 Q340169
USER
And also tell me about vaquero?
(c(Q18783400)|c(Q340169),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q1401609
relation P180
type Q18783400
type Q340169
[[{'concept': 'Q18783400'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?x ) WHERE { VALUES ( ?q ) { ( ontology:Q18783400 ) ( ontology:Q340169 ) } . ?d rdf:type ?q } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P180 resource:Q1401609 . { { ?u rdf:type ontology:Q18783400 } UNION { ?u rdf:type ontology:Q340169 } } } } . FILTER ( ?x > ?j ) }
vaquero
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity vaquero
relation depicts
type genre of sculpture
type media
[[{'concept': 'genre of sculpture'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?x ) WHERE { VALUES ( ?q ) { ( ontology:genre_of_sculpture ) ( ontology:media ) } . ?d rdf:type ?q } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:depicts resource:vaquero . { { ?u rdf:type ontology:genre_of_sculpture } UNION { ?u rdf:type ontology:media } } } } . FILTER ( ?x > ?j ) }
[]
occupation genre of sculpture media
SYSTEM
15
Q177220 Q131512 Q2995983 Q45199 Q186360 Q733786 Q4991371 Q273108 Q589897 Q20489032 Q5716684 Q18575684 Q639669 Q384593 Q1630100
(c(Q18783400)|c(Q340169),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q1401609
relation P180
type Q18783400
type Q340169
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?x ) WHERE { VALUES ( ?q ) { ( ontology:Q18783400 ) ( ontology:Q340169 ) } . ?d rdf:type ?q } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P180 resource:Q1401609 . { { ?u rdf:type ontology:Q18783400 } UNION { ?u rdf:type ontology:Q340169 } } } } . FILTER ( ?x > ?j ) }
singer farmer double-bassist sailor nurse monk soldier condottiero mahout salt pan worker dancer embroiderer musician police officer art model
15
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity vaquero
relation depicts
type genre of sculpture
type media
[[{'concept': 'genre of sculpture'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?x ) WHERE { VALUES ( ?q ) { ( ontology:genre_of_sculpture ) ( ontology:media ) } . ?d rdf:type ?q } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:depicts resource:vaquero . { { ?u rdf:type ontology:genre_of_sculpture } UNION { ?u rdf:type ontology:media } } } } . FILTER ( ?x > ?j ) }
[]