Simple Question (Direct)
Simple Question
Q3838100
P39
Q12737077
USER
What was the position held by Luca Danese ?
(Q3838100,P39,c(Q12737077))
action filter_type
action find
entity Q3838100
relation P39
type Q12737077
['Q3838100', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q3838100 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Luca Danese
action filter_type
action find
entity Luca Danese
relation position held
type occupation
['Luca Danese', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Luca_Danese property:position_held ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q18558478
SYSTEM
member of the Chamber of Deputies of the Italian Republic
Q18558478
(Q3838100,P39,c(Q12737077))
action filter_type
action find
entity Q3838100
relation P39
type Q12737077
The position held by Luca Danese was a [ANSWER]
['Q3838100', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q3838100 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
member of the Chamber of Deputies of the Italian Republic
The position held by Luca Danese was a member of the Chamber of Deputies of the Italian Republic
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity Luca Danese
relation position held
type occupation
['Luca Danese', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Luca_Danese property:position_held ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3838100
P1412
Q34770
USER
Which language can that person understand ?
(Q18558478,P1412,c(Q34770))
action filter_type
action find
entity Q3838100
relation P1412
type Q34770
['Q18558478', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q3838100 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
Luca Danese
action filter_type
action find
entity Luca Danese
relation languages spoken, written or signed
type language
['member of the Chamber of Deputies of the Italian Republic', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Luca_Danese property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q18558478,P1412,c(Q34770))
action filter_type
action find
entity Q3838100
relation P1412
type Q34770
That person can understand [ANSWER]
['Q18558478', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { resource:Q3838100 property:P1412 ?l . ?l rdf:type ontology:Q34770 }
Italian
That person can understand Italian
Italian
action filter_type
action find
entity Luca Danese
relation languages spoken, written or signed
type language
['member of the Chamber of Deputies of the Italian Republic', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { resource:Luca_Danese property:languages_spoken,_written_or_signed ?l . ?l rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q340169 Q3305213
USER
How many occupations are depicted in around 2 medias or paintings ?
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
value 2
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) ?d WHERE { { ?h property:P180 ?d . ?d rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q340169 } UNION { ?h property:P180 ?d . ?d rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q3305213 } } GROUP BY ?d } . FILTER ( ?r = 2 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
value 2
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) ?d WHERE { { ?h property:depicts ?d . ?d rdf:type ontology:occupation . ?h rdf:type ontology:media } UNION { ?h property:depicts ?d . ?d rdf:type ontology:occupation . ?h rdf:type ontology:painting } } GROUP BY ?d } . FILTER ( ?r = 2 ) }
[]
occupation media painting
SYSTEM
5
Q19723482 Q12059906 Q5716684 Q15296811 Q1630100
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
value 2
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) ?d WHERE { { ?h property:P180 ?d . ?d rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q340169 } UNION { ?h property:P180 ?d . ?d rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q3305213 } } GROUP BY ?d } . FILTER ( ?r = 2 ) }
mandolinist herder dancer draughtsperson art model
5
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
value 2
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) ?d WHERE { { ?h property:depicts ?d . ?d rdf:type ontology:occupation . ?h rdf:type ontology:media } UNION { ?h property:depicts ?d . ?d rdf:type ontology:occupation . ?h rdf:type ontology:painting } } GROUP BY ?d } . FILTER ( ?r = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3838100
P937
Q56061
USER
Which administrative territory is the work location of Luca Danese ?
(Q3838100,P937,c(Q56061))
action filter_type
action find
entity Q3838100
relation P937
type Q56061
['Q3838100', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q3838100 property:P937 ?s }
Luca Danese
action filter_type
action find
entity Luca Danese
relation work location
type administrative territorial entity
['Luca Danese', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Luca_Danese property:work_location ?s }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q3838100,P937,c(Q56061))
action filter_type
action find
entity Q3838100
relation P937
type Q56061
[ANSWER] is the work location of Luca Danese
['Q3838100', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q3838100 property:P937 ?s }
Rome
Rome is the work location of Luca Danese
Rome
action filter_type
action find
entity Luca Danese
relation work location
type administrative territorial entity
['Luca Danese', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Luca_Danese property:work_location ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3838100
P102
Q7210356
USER
Which party does that person belong to ?
(Q220,P102,c(Q7210356))
action filter_type
action find
entity Q3838100
relation P102
type Q7210356
['Q220', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q3838100 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Luca Danese
action filter_type
action find
entity Luca Danese
relation member of political party
type political organization
['Rome', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Luca_Danese property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
political organization
Q178216
SYSTEM
Alliance for Italy
Q178216
(Q220,P102,c(Q7210356))
action filter_type
action find
entity Q3838100
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q220', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q3838100 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Alliance for Italy
That person belongs to Alliance for Italy
Alliance for Italy
action filter_type
action find
entity Luca Danese
relation member of political party
type political organization
['Rome', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Luca_Danese property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q178216
P1416
Q7210356
USER
Which political organization is affiliated to that one ?
(c(Q7210356),P1416,Q178216)
action filter_type
action find_reverse
entity Q178216
relation P1416
type Q7210356
[{'concept': 'Q7210356'}, 'P1416', 'Q178216']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q7210356 . ?r property:P1416 resource:Q178216 }
Alliance for Italy
action filter_type
action find_reverse
entity Alliance for Italy
relation affiliation
type political organization
[{'concept': 'political organization'}, 'affiliation', 'Alliance for Italy']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_organization . ?r property:affiliation resource:Alliance_for_Italy }
[]
political organization
Q4732403
SYSTEM
Alliance for Veneto
Q4732403
(c(Q7210356),P1416,Q178216)
action filter_type
action find_reverse
entity Q178216
relation P1416
type Q7210356
[ANSWER] is affiliated to that one
[{'concept': 'Q7210356'}, 'P1416', 'Q178216']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q7210356 . ?r property:P1416 resource:Q178216 }
Alliance for Veneto
Alliance for Veneto is affiliated to that one
Alliance for Veneto
action filter_type
action find_reverse
entity Alliance for Italy
relation affiliation
type political organization
[{'concept': 'political organization'}, 'affiliation', 'Alliance for Italy']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_organization . ?r property:affiliation resource:Alliance_for_Italy }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q510373
P921
Q12737077 Q191067 Q732577
USER
How many occupations were discussed in lesser number of articles and publications than Lord High Steward ?
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q510373
relation P921
type Q191067
type Q732577
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) ?o WHERE { ?c rdf:type ?a . VALUES ( ?a ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } } GROUP BY ?o } . FILTER ( ?z < ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { ?k rdf:type ?u . VALUES ( ?u ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } } . ?k property:P921 resource:Q510373 } } }
Lord High Steward
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity Lord High Steward
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) ?o WHERE { ?c rdf:type ?a . VALUES ( ?a ) { ( ontology:publication ) ( ontology:article ) } } GROUP BY ?o } . FILTER ( ?z < ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { ?k rdf:type ?u . VALUES ( ?u ) { ( ontology:article ) ( ontology:publication ) } } . ?k property:main_subject resource:Lord_High_Steward } } }
[]
occupation article publication
SYSTEM
92
Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q936969 Q16746569 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q510373
relation P921
type Q191067
type Q732577
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) ?o WHERE { ?c rdf:type ?a . VALUES ( ?a ) { ( ontology:Q732577 ) ( ontology:Q191067 ) } } GROUP BY ?o } . FILTER ( ?z < ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { ?k rdf:type ?u . VALUES ( ?u ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } } . ?k property:P921 resource:Q510373 } } }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate ninja taxi driver businessperson gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier bishop member of parliament violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly nanny high school student caricaturist painter American football player legal profession composer rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician poet medical examiner police officer aviator statesman political scientist cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
92
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity Lord High Steward
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) ?o WHERE { ?c rdf:type ?a . VALUES ( ?a ) { ( ontology:publication ) ( ontology:article ) } } GROUP BY ?o } . FILTER ( ?z < ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) WHERE { { ?k rdf:type ?u . VALUES ( ?u ) { ( ontology:article ) ( ontology:publication ) } } . ?k property:main_subject resource:Lord_High_Steward } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q15320003
P921
Q12737077 Q191067 Q732577
USER
And also tell me about migrant worker?
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q15320003
relation P921
type Q191067
type Q732577
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?f ) WHERE { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P921 resource:Q15320003 . { { ?v rdf:type ontology:Q191067 } UNION { ?v rdf:type ontology:Q732577 } } } } . FILTER ( ?f < ?d ) }
migrant worker
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity migrant worker
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?f ) WHERE { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:article ) ( ontology:publication ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:main_subject resource:migrant_worker . { { ?v rdf:type ontology:article } UNION { ?v rdf:type ontology:publication } } } } . FILTER ( ?f < ?d ) }
[]
occupation article publication
SYSTEM
92
Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q1114448 Q16533 Q18220900 Q936969 Q16746569 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q191067)|c(Q732577),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q15320003
relation P921
type Q191067
type Q732577
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?f ) WHERE { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:Q191067 ) ( ontology:Q732577 ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P921 resource:Q15320003 . { { ?v rdf:type ontology:Q191067 } UNION { ?v rdf:type ontology:Q732577 } } } } . FILTER ( ?f < ?d ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate ninja taxi driver businessperson gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier bishop member of parliament violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist cartoonist judge Member of the South Australian House of Assembly nanny high school student caricaturist painter American football player legal profession composer rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician poet medical examiner police officer aviator statesman political scientist cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
92
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity migrant worker
relation main subject
type article
type publication
[[{'concept': 'article'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?f ) WHERE { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:article ) ( ontology:publication ) } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:main_subject resource:migrant_worker . { { ?v rdf:type ontology:article } UNION { ?v rdf:type ontology:publication } } } } . FILTER ( ?f < ?d ) }
[]