Simple Question (Direct)
Simple Question
Q5626786
P734
Q82799
USER
Who has the surname Miguel Echegaray ?
(Q5626786,P734,c(Q82799))
action filter_type
action find
entity Q5626786
relation P734
type Q82799
['Q5626786', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q5626786 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Miguel Echegaray
action filter_type
action find
entity Miguel Echegaray
relation family name
type name
['Miguel Echegaray', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Miguel_Echegaray property:family_name ?o . ?o rdf:type ontology:name }
[]
name
Q20119928
SYSTEM
Echegaray
Q20119928
(Q5626786,P734,c(Q82799))
action filter_type
action find
entity Q5626786
relation P734
type Q82799
[ANSWER] has the surname Miguel [ANSWER]
['Q5626786', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q5626786 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Echegaray
Echegaray has the surname Miguel Echegaray
Echegaray
action filter_type
action find
entity Miguel Echegaray
relation family name
type name
['Miguel Echegaray', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Miguel_Echegaray property:family_name ?o . ?o rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5626786
P1412
Q34770
USER
Which language is spoken by Miguel Echegaray ?
(Q5626786,P1412,c(Q34770))
action filter_type
action find
entity Q5626786
relation P1412
type Q34770
['Q5626786', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q5626786 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Miguel Echegaray
action filter_type
action find
entity Miguel Echegaray
relation languages spoken, written or signed
type language
['Miguel Echegaray', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Miguel_Echegaray property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5626786,P1412,c(Q34770))
action filter_type
action find
entity Q5626786
relation P1412
type Q34770
In [ANSWER] is spoken by Miguel Echegaray
['Q5626786', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q5626786 property:P1412 ?m . ?m rdf:type ontology:Q34770 }
Spanish
In Spanish is spoken by Miguel Echegaray
Spanish
action filter_type
action find
entity Miguel Echegaray
relation languages spoken, written or signed
type language
['Miguel Echegaray', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Miguel_Echegaray property:languages_spoken,_written_or_signed ?m . ?m rdf:type ontology:language }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P608
Q667276 Q2668072 Q502895
USER
Which people were displayed at atmost 3 art exhibitions or collections ?
(c(Q502895),P608,c(Q667276)|c(Q2668072))
action atmost
action union
action find_tuple_counts
relation P608
type Q502895
type Q667276
action find_tuple_counts
relation P608
type Q502895
type Q2668072
value 3
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q667276'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) ?s WHERE { { ?s property:P608 ?a . ?s rdf:type ontology:Q502895 . ?a rdf:type ontology:Q667276 } UNION { ?s property:P608 ?a . ?a rdf:type ontology:Q2668072 . ?s rdf:type ontology:Q502895 } } GROUP BY ?s } . FILTER ( ?h <= 3 ) }
action atmost
action union
action find_tuple_counts
relation exhibition history
type common name
type art exhibition
action find_tuple_counts
relation exhibition history
type common name
type collection
value 3
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'art exhibition'}, {'concept': 'collection'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) ?s WHERE { { ?s property:exhibition_history ?a . ?s rdf:type ontology:common_name . ?a rdf:type ontology:art_exhibition } UNION { ?s property:exhibition_history ?a . ?a rdf:type ontology:collection . ?s rdf:type ontology:common_name } } GROUP BY ?s } . FILTER ( ?h <= 3 ) }
[]
art exhibition collection common name
Q5040332 Q55192 Q3289592
SYSTEM
Carl Holty, Gertrude Abercrombie, Moniek Toebosch
Q70006 Q17314881 Q17455385 Q15734263 Q15734265 Q6196481 Q4945678 Q16004451 Q4648360 Q7649008 Q16858002 Q15991813 Q6990118 Q16062545 Q5671224 Q17625628 Q16005428 Q27505608 Q5248733 Q2824894 Q15734237 Q2965423 Q5040332 Q6687160 Q3289592 Q20888837 Q22815085 Q5375139 Q9015308 Q805807 Q16080418 Q16121375 Q15873898 Q55192 Q3335569 Q16968866
(c(Q502895),P608,c(Q667276)|c(Q2668072))
action atmost
action union
action find_tuple_counts
relation P608
type Q502895
type Q667276
action find_tuple_counts
relation P608
type Q502895
type Q2668072
value 3
[ANSWERS] were displayed at atmost 3 art exhibitions or collections
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q667276'}, {'concept': 'Q2668072'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) ?s WHERE { { ?s property:P608 ?a . ?s rdf:type ontology:Q502895 . ?a rdf:type ontology:Q667276 } UNION { ?s property:P608 ?a . ?a rdf:type ontology:Q2668072 . ?s rdf:type ontology:Q502895 } } GROUP BY ?s } . FILTER ( ?h <= 3 ) }
Lotte Jacobi René Izaure Jerry Cooke Johanna Bleuland van Oordt Adri Bleuland van Oordt Jim Love Martha Edelheit Jennifer Bolande A. S. Baylinson Susie Bootja Bootja Napaltjarri Anne Mee Judie Bamber Nellie Mae Rowe Alice Havers Pablo Borges Delgado Deborah De Robertis Andrea Bowers Wolfgang Sellinger Manuel Ocampo Adolphe Péterelle Tony van Alphen Christian Lhopital Carl Holty Louis Ferstadt Moniek Toebosch Angélique Bègue Georges Violet Ena Swansea Juan Carlos Alom Balto Alyce Frank Judith Lowry Chrisje van der Willigen Gertrude Abercrombie Nancy Elizabeth Prophet Lydia Schouten
Carl Holty, Gertrude Abercrombie and Moniek Toebosch were displayed at atmost 3 art exhibitions or collections
Carl Holty Gertrude Abercrombie Moniek Toebosch
action atmost
action union
action find_tuple_counts
relation exhibition history
type common name
type art exhibition
action find_tuple_counts
relation exhibition history
type common name
type collection
value 3
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'art exhibition'}, {'concept': 'collection'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) ?s WHERE { { ?s property:exhibition_history ?a . ?s rdf:type ontology:common_name . ?a rdf:type ontology:art_exhibition } UNION { ?s property:exhibition_history ?a . ?a rdf:type ontology:collection . ?s rdf:type ontology:common_name } } GROUP BY ?s } . FILTER ( ?h <= 3 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3289592
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q3289592,P19,c(Q56061))
action filter_type
action find
entity Q3289592
relation P19
type Q56061
['Q3289592', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3289592 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Moniek Toebosch
action filter_type
action find
entity Moniek Toebosch
relation place of birth
type administrative territorial entity
['Moniek Toebosch', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Moniek_Toebosch property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q55192
SYSTEM
Did you mean Gertrude Abercrombie ?
Q5040332 Q55192 Q3289592
(Q5040332,P19,c(Q56061)) (Q55192,P19,c(Q56061)) (Q3289592,P19,c(Q56061))
[ANSWER]
['Q5040332', 'P19', {'concept': 'Q56061'}] ['Q55192', 'P19', {'concept': 'Q56061'}] ['Q3289592', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3289592 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Carl Holty Gertrude Abercrombie Moniek Toebosch
Did you mean Gertrude Abercrombie ?
Gertrude Abercrombie
['Carl Holty', 'place of birth', {'concept': 'administrative territorial entity'}] ['Gertrude Abercrombie', 'place of birth', {'concept': 'administrative territorial entity'}] ['Moniek Toebosch', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Moniek_Toebosch property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Moniek Toebosch. Could you tell me the answer for that?
(Q3289592,P19,c(Q56061))
Q3289592
['Q3289592', 'P19', {'concept': 'Q56061'}]
['Moniek Toebosch', 'place of birth', {'concept': 'administrative territorial entity'}]
[]
Q40844
SYSTEM
Breda
Q40844
(Q3289592,P19,c(Q56061))
action filter_type
action find
entity Q3289592
relation P19
type Q56061
That person was born in [ANSWER]
['Q3289592', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3289592 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Breda
That person was born in Breda
Breda
action filter_type
action find
entity Moniek Toebosch
relation place of birth
type administrative territorial entity
['Moniek Toebosch', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Moniek_Toebosch property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q40844 Q9837
P47
Q13220204
USER
Does Gilze en Rijen have a shared border with that administrative territory ?
(Q40844,P47,Q9837)
action is_in
entity Q9837
action find
entity Q40844
relation P47
['Q40844', 'P47', 'Q9837']
ASK WHERE { resource:Q40844 property:P47 resource:Q9837 }
Breda Gilze en Rijen
action is_in
entity Gilze en Rijen
action find
entity Breda
relation shares border with
['Breda', 'shares border with', 'Gilze en Rijen']
ASK WHERE { resource:Breda property:shares_border_with resource:Gilze_en_Rijen }
[]
second-level administrative country subdivision
SYSTEM
YES
(Q40844,P47,Q9837)
action is_in
entity Q9837
action find
entity Q40844
relation P47
[ANSWER]
['Q40844', 'P47', 'Q9837']
ASK WHERE { resource:Q40844 property:P47 resource:Q9837 }
Yes
action is_in
entity Gilze en Rijen
action find
entity Breda
relation shares border with
['Breda', 'shares border with', 'Gilze en Rijen']
ASK WHERE { resource:Breda property:shares_border_with resource:Gilze_en_Rijen }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40844
P127
Q483110
USER
Which stadia are owned by that administrative territory ?
action filter_type
action find_reverse
entity Q40844
relation P127
type Q483110
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q483110 . ?p property:P127 resource:Q40844 }
Breda
action filter_type
action find_reverse
entity Breda
relation owned by
type stadium
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:stadium . ?p property:owned_by resource:Breda }
[]
stadium
Q6952179 Q2042096 Q2132300
SYSTEM
NAC stadion Heuvelstraat, NAC Stadion, Rat Verlegh Stadion
Q6952179 Q2042096 Q2132300
action filter_type
action find_reverse
entity Q40844
relation P127
type Q483110
[ANSWERS] are owned by that administrative territory
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q483110 . ?p property:P127 resource:Q40844 }
NAC stadion Heuvelstraat NAC Stadion Rat Verlegh Stadion
NAC stadion Heuvelstraat, NAC Stadion and Rat Verlegh Stadion are owned by that administrative territory
NAC stadion Heuvelstraat NAC Stadion Rat Verlegh Stadion
action filter_type
action find_reverse
entity Breda
relation owned by
type stadium
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:stadium . ?p property:owned_by resource:Breda }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q6661009
P115
Q483110 Q618123
USER
How many geographical objects have greater number of stadia as their home venue than Ljusdals BK ?
(c(Q618123),P115,c(Q483110))
action count
action greater
action find_tuple_counts
relation P115
type Q618123
type Q483110
action count
action filter_type
action find
entity Q6661009
relation P115
type Q618123
[{'concept': 'Q618123'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?e ) WHERE { ?d property:P115 ?j . ?d rdf:type ontology:Q618123 . ?j rdf:type ontology:Q483110 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t rdf:type ontology:Q618123 . resource:Q6661009 property:P115 ?t } } . FILTER ( ?e > ?u ) }
Ljusdals BK
action count
action greater
action find_tuple_counts
relation home venue
type geographical object
type stadium
action count
action filter_type
action find
entity Ljusdals BK
relation home venue
type geographical object
[{'concept': 'geographical object'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?e ) WHERE { ?d property:home_venue ?j . ?d rdf:type ontology:geographical_object . ?j rdf:type ontology:stadium } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t rdf:type ontology:geographical_object . resource:Ljusdals_BK property:home_venue ?t } } . FILTER ( ?e > ?u ) }
[]
stadium geographical object
SYSTEM
22
Q492826 Q26935988 Q15755 Q161034 Q267574 Q844238 Q26936725 Q172567 Q26934244 Q1423118 Q276533 Q26933446 Q692586 Q41420 Q1389863 Q176795 Q7186906 Q26936815 Q105853 Q26927692 Q5014111 Q80899
(c(Q618123),P115,c(Q483110))
action count
action greater
action find_tuple_counts
relation P115
type Q618123
type Q483110
action count
action filter_type
action find
entity Q6661009
relation P115
type Q618123
[ANSWER]
[{'concept': 'Q618123'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?e ) WHERE { ?d property:P115 ?j . ?d rdf:type ontology:Q618123 . ?j rdf:type ontology:Q483110 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t rdf:type ontology:Q618123 . resource:Q6661009 property:P115 ?t } } . FILTER ( ?e > ?u ) }
MKE Ankaragücü Evagoras Gymnastic Club FC Augsburg SV Wacker Burghausen Aalborg Boldspilklub Defensor Sporting Club Praxandros Gymnastic Club Beşiktaş J.K. Zenon Gymnastic Club Göztepe S.K. Racing Club Asociación Civil Olympia Gymnastic Association VfR Aalen Borussia Dortmund FUS de Rabat Karşıyaka S.K. Phoenix Inferno Koroibus Gymnastic Club Karlsruher SC Pancyprian Gymnastic Association CR Vasco da Gama Unión de Santa Fe
22
action count
action greater
action find_tuple_counts
relation home venue
type geographical object
type stadium
action count
action filter_type
action find
entity Ljusdals BK
relation home venue
type geographical object
[{'concept': 'geographical object'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?e ) WHERE { ?d property:home_venue ?j . ?d rdf:type ontology:geographical_object . ?j rdf:type ontology:stadium } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t rdf:type ontology:geographical_object . resource:Ljusdals_BK property:home_venue ?t } } . FILTER ( ?e > ?u ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2042096
P276
Q56061
USER
Where is NAC Stadion located ?
(Q2042096,P276,c(Q56061))
action filter_type
action find
entity Q2042096
relation P276
type Q56061
['Q2042096', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q2042096 property:P276 ?h . ?h rdf:type ontology:Q56061 }
NAC Stadion
action filter_type
action find
entity NAC Stadion
relation location
type administrative territorial entity
['NAC Stadion', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:NAC_Stadion property:location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q40844
SYSTEM
Breda
Q40844
(Q2042096,P276,c(Q56061))
action filter_type
action find
entity Q2042096
relation P276
type Q56061
NAC Stadion is located in [ANSWER]
['Q2042096', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q2042096 property:P276 ?h . ?h rdf:type ontology:Q56061 }
Breda
NAC Stadion is located in Breda
Breda
action filter_type
action find
entity NAC Stadion
relation location
type administrative territorial entity
['NAC Stadion', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:NAC_Stadion property:location ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5626786
P20
Q56061
USER
Where did Miguel Echegaray expire ?
(Q5626786,P20,c(Q56061))
action filter_type
action find
entity Q5626786
relation P20
type Q56061
['Q5626786', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q5626786 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Miguel Echegaray
action filter_type
action find
entity Miguel Echegaray
relation place of death
type administrative territorial entity
['Miguel Echegaray', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Miguel_Echegaray property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q5626786,P20,c(Q56061))
action filter_type
action find
entity Q5626786
relation P20
type Q56061
Miguel Echegaray expired in [ANSWER]
['Q5626786', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q5626786 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Madrid
Miguel Echegaray expired in Madrid
Madrid
action filter_type
action find
entity Miguel Echegaray
relation place of death
type administrative territorial entity
['Miguel Echegaray', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Miguel_Echegaray property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5626786
P106
Q12737077
USER
What is the profession of that person ?
(Q2807,P106,c(Q12737077))
action filter_type
action find
entity Q5626786
relation P106
type Q12737077
['Q2807', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q5626786 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Miguel Echegaray
action filter_type
action find
entity Miguel Echegaray
relation occupation
type occupation
['Madrid', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Miguel_Echegaray property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q2807,P106,c(Q12737077))
action filter_type
action find
entity Q5626786
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q2807', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q5626786 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
writer
The profession of that person is a writer
writer
action filter_type
action find
entity Miguel Echegaray
relation occupation
type occupation
['Madrid', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Miguel_Echegaray property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q12737077 Q502895 Q2342494
USER
Which occupations do lesser number of people and collectables belong to than that occupation ?
(c(Q502895)|c(Q2342494),P101,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P101
type Q502895
type Q2342494
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?e WHERE { { ?l property:P101 ?e . ?e rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q502895 } UNION { ?l property:P101 ?e . ?l rdf:type ontology:Q2342494 . ?e rdf:type ontology:Q12737077 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:P101 resource:Q36180 . { { ?n rdf:type ontology:Q2342494 } UNION { ?n rdf:type ontology:Q502895 } } } } . FILTER ( ?s < ?p ) }
action less
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity writer
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?e WHERE { { ?l property:field_of_work ?e . ?e rdf:type ontology:occupation . ?l rdf:type ontology:common_name } UNION { ?l property:field_of_work ?e . ?l rdf:type ontology:collectable . ?e rdf:type ontology:occupation } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:field_of_work resource:writer . { { ?n rdf:type ontology:collectable } UNION { ?n rdf:type ontology:common_name } } } } . FILTER ( ?s < ?p ) }
[]
occupation common name collectable
Q211423 Q2259451 Q705908
SYSTEM
goldsmith, stage actor, agency agreement
Q652122 Q211423 Q2259451 Q326358 Q705908 Q2205972 Q901 Q3387717 Q154549 Q2490358
(c(Q502895)|c(Q2342494),P101,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q502895
action find_reverse_tuple_counts
relation P101
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q36180
relation P101
type Q502895
type Q2342494
[ANSWERS] lesser number of people and collectables belong to than that occupation
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?e WHERE { { ?l property:P101 ?e . ?e rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q502895 } UNION { ?l property:P101 ?e . ?l rdf:type ontology:Q2342494 . ?e rdf:type ontology:Q12737077 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:P101 resource:Q36180 . { { ?n rdf:type ontology:Q2342494 } UNION { ?n rdf:type ontology:Q502895 } } } } . FILTER ( ?s < ?p ) }
sewing goldsmith stage actor joiner agency agreement stained-glass artist scientist theatre director carpenter choreographer
Goldsmith, stage actor and agency agreement lesser number of people and collectables belong to than that occupation
goldsmith stage actor agency agreement
action less
action union
action find_reverse_tuple_counts
relation field of work
type occupation
type common name
action find_reverse_tuple_counts
relation field of work
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity writer
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) ?e WHERE { { ?l property:field_of_work ?e . ?e rdf:type ontology:occupation . ?l rdf:type ontology:common_name } UNION { ?l property:field_of_work ?e . ?l rdf:type ontology:collectable . ?e rdf:type ontology:occupation } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:field_of_work resource:writer . { { ?n rdf:type ontology:collectable } UNION { ?n rdf:type ontology:common_name } } } } . FILTER ( ?s < ?p ) }
[]