Simple Question (Direct)
Simple Question
Q3618021
P162
Q502895
USER
Which people produced Anni 90 ?
(Q3618021,P162,c(Q502895))
action filter_type
action find
entity Q3618021
relation P162
type Q502895
['Q3618021', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q3618021 property:P162 ?q . ?q rdf:type ontology:Q502895 }
Anni 90
action filter_type
action find
entity Anni 90
relation producer
type common name
['Anni 90', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Anni_90 property:producer ?q . ?q rdf:type ontology:common_name }
[]
common name
Q775572 Q1308545
SYSTEM
Aurelio De Laurentiis, Luigi De Laurentiis
Q775572 Q1308545
(Q3618021,P162,c(Q502895))
action filter_type
action find
entity Q3618021
relation P162
type Q502895
[ANSWERS] produced Anni 90
['Q3618021', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q3618021 property:P162 ?q . ?q rdf:type ontology:Q502895 }
Aurelio De Laurentiis Luigi De Laurentiis
Aurelio De Laurentiis and Luigi De Laurentiis produced Anni 90
Aurelio De Laurentiis Luigi De Laurentiis
action filter_type
action find
entity Anni 90
relation producer
type common name
['Anni 90', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Anni_90 property:producer ?q . ?q rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1308545
P106
Q28640
USER
What is the profession of that person ?
(Q1308545,P106,c(Q28640))
action filter_type
action find
entity Q1308545
relation P106
type Q28640
['Q1308545', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { resource:Q1308545 property:P106 ?m . ?m rdf:type ontology:Q28640 }
Luigi De Laurentiis
action filter_type
action find
entity Luigi De Laurentiis
relation occupation
type profession
['Luigi De Laurentiis', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { resource:Luigi_De_Laurentiis property:occupation ?m . ?m rdf:type ontology:profession }
[]
profession
Clarification for simple ques.
Q775572
SYSTEM
Did you mean Aurelio De Laurentiis ?
Q775572 Q1308545
(Q775572,P106,c(Q28640)) (Q1308545,P106,c(Q28640))
[ANSWER]
['Q775572', 'P106', {'concept': 'Q28640'}] ['Q1308545', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { resource:Q1308545 property:P106 ?m . ?m rdf:type ontology:Q28640 }
Aurelio De Laurentiis Luigi De Laurentiis
Did you mean Aurelio De Laurentiis ?
Aurelio De Laurentiis
['Aurelio De Laurentiis', 'occupation', {'concept': 'profession'}] ['Luigi De Laurentiis', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { resource:Luigi_De_Laurentiis property:occupation ?m . ?m rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
USER
No, I meant Luigi De Laurentiis. Could you tell me the answer for that?
(Q1308545,P106,c(Q28640))
Q1308545
['Q1308545', 'P106', {'concept': 'Q28640'}]
['Luigi De Laurentiis', 'occupation', {'concept': 'profession'}]
[]
Q3282637
SYSTEM
film producer
Q3282637
(Q1308545,P106,c(Q28640))
action filter_type
action find
entity Q1308545
relation P106
type Q28640
The profession of that person is a [ANSWER]
['Q1308545', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { resource:Q1308545 property:P106 ?m . ?m rdf:type ontology:Q28640 }
film producer
The profession of that person is a film producer
film producer
action filter_type
action find
entity Luigi De Laurentiis
relation occupation
type profession
['Luigi De Laurentiis', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { resource:Luigi_De_Laurentiis property:occupation ?m . ?m rdf:type ontology:profession }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P355
Q28640 Q28640
USER
Which professions serve as a subsidiary of around 1 profession ?
(c(Q28640),P355,c(Q28640))
action approx
action find_reverse_tuple_counts
relation P355
type Q28640
type Q28640
value 1
[{'concept': 'Q28640'}, 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P355 ?r . ?r rdf:type ontology:Q28640 . ?n rdf:type ontology:Q28640 } GROUP BY ?r } . FILTER ( ?y = 1 ) }
action approx
action find_reverse_tuple_counts
relation subsidiary
type profession
type profession
value 1
[{'concept': 'profession'}, 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:subsidiary ?r . ?r rdf:type ontology:profession . ?n rdf:type ontology:profession } GROUP BY ?r } . FILTER ( ?y = 1 ) }
[]
profession profession
Q1060165 Q800120 Q1172164
SYSTEM
Riot Games, Humongous, CD Projekt RED
Q1040450 Q18414205 Q15240959 Q2076545 Q18388687 Q3456271 Q611508 Q1060165 Q684218 Q26222 Q1053684 Q739711 Q2510684 Q94937 Q4039000 Q1930918 Q923047 Q800120 Q8043371 Q1172164 Q1466613
(c(Q28640),P355,c(Q28640))
action approx
action find_reverse_tuple_counts
relation P355
type Q28640
type Q28640
value 1
[ANSWERS] serve as a subsidiary of around 1 profession
[{'concept': 'Q28640'}, 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P355 ?r . ?r rdf:type ontology:Q28640 . ?n rdf:type ontology:Q28640 } GROUP BY ?r } . FILTER ( ?y = 1 ) }
Guerrilla Cambridge Future Games Of London Team Bloodlust Day 1 Studios Lift London BigWorld Creative Assembly Riot Games Cavedog Entertainment Gas Powered Games Polyphony Digital Epic Games Zynga Dallas 2K Games Freeverse U.S. Gold 989 Studios Humongous Launchworks CD Projekt RED Ubisoft Massive
Riot Games, Humongous and CD Projekt RED serve as a subsidiary of around 1 profession
Riot Games Humongous CD Projekt RED
action approx
action find_reverse_tuple_counts
relation subsidiary
type profession
type profession
value 1
[{'concept': 'profession'}, 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:subsidiary ?r . ?r rdf:type ontology:profession . ?n rdf:type ontology:profession } GROUP BY ?r } . FILTER ( ?y = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1308545
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q1060165,P20,c(Q56061)) (Q800120,P20,c(Q56061)) (Q1172164,P20,c(Q56061))
action filter_type
action find
entity Q1308545
relation P20
type Q56061
['Q1060165', 'P20', {'concept': 'Q56061'}] ['Q800120', 'P20', {'concept': 'Q56061'}] ['Q1172164', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1308545 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Luigi De Laurentiis
action filter_type
action find
entity Luigi De Laurentiis
relation place of death
type administrative territorial entity
['Riot Games', 'place of death', {'concept': 'administrative territorial entity'}] ['Humongous', 'place of death', {'concept': 'administrative territorial entity'}] ['CD Projekt RED', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Luigi_De_Laurentiis property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q1060165,P20,c(Q56061)) (Q800120,P20,c(Q56061)) (Q1172164,P20,c(Q56061))
action filter_type
action find
entity Q1308545
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q1060165', 'P20', {'concept': 'Q56061'}] ['Q800120', 'P20', {'concept': 'Q56061'}] ['Q1172164', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1308545 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Rome
Rome is the place of death of that person
Rome
action filter_type
action find
entity Luigi De Laurentiis
relation place of death
type administrative territorial entity
['Riot Games', 'place of death', {'concept': 'administrative territorial entity'}] ['Humongous', 'place of death', {'concept': 'administrative territorial entity'}] ['CD Projekt RED', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Luigi_De_Laurentiis property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1308545
P19
Q15617994
USER
Which administrative territory is the birthplace of Luigi De Laurentiis ?
(Q1308545,P19,c(Q15617994))
action filter_type
action find
entity Q1308545
relation P19
type Q15617994
['Q1308545', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1308545 property:P19 ?q }
Luigi De Laurentiis
action filter_type
action find
entity Luigi De Laurentiis
relation place of birth
type designation for an administrative territorial entity
['Luigi De Laurentiis', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Luigi_De_Laurentiis property:place_of_birth ?q }
[]
designation for an administrative territorial entity
Q72712
SYSTEM
Torre Annunziata
Q72712
(Q1308545,P19,c(Q15617994))
action filter_type
action find
entity Q1308545
relation P19
type Q15617994
[ANSWER] is the birthplace of Luigi De Laurentiis
['Q1308545', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q1308545 property:P19 ?q }
Torre Annunziata
Torre Annunziata is the birthplace of Luigi De Laurentiis
Torre Annunziata
action filter_type
action find
entity Luigi De Laurentiis
relation place of birth
type designation for an administrative territorial entity
['Luigi De Laurentiis', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Luigi_De_Laurentiis property:place_of_birth ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1308545
P106
Q28640
USER
Which profession has that person as his/her 's career ?
(Q72712,P106,c(Q28640))
action filter_type
action find
entity Q1308545
relation P106
type Q28640
['Q72712', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?e WHERE { resource:Q1308545 property:P106 ?e . ?e rdf:type ontology:Q28640 }
Luigi De Laurentiis
action filter_type
action find
entity Luigi De Laurentiis
relation occupation
type profession
['Torre Annunziata', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?e WHERE { resource:Luigi_De_Laurentiis property:occupation ?e . ?e rdf:type ontology:profession }
[]
profession
Q3282637
SYSTEM
film producer
Q3282637
(Q72712,P106,c(Q28640))
action filter_type
action find
entity Q1308545
relation P106
type Q28640
The [ANSWER] has that person as his/her 's career
['Q72712', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?e WHERE { resource:Q1308545 property:P106 ?e . ?e rdf:type ontology:Q28640 }
film producer
The film producer has that person as his/her 's career
film producer
action filter_type
action find
entity Luigi De Laurentiis
relation occupation
type profession
['Torre Annunziata', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?e WHERE { resource:Luigi_De_Laurentiis property:occupation ?e . ?e rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1308545
P1431
Q838948
USER
Which work of art did that person produce ?
(c(Q838948),P1431,Q3282637)
action filter_type
action find_reverse
entity Q1308545
relation P1431
type Q838948
[{'concept': 'Q838948'}, 'P1431', 'Q3282637']
SELECT DISTINCT ?s WHERE { ?s property:P1431 resource:Q1308545 . ?s rdf:type ontology:Q838948 }
Luigi De Laurentiis
action filter_type
action find_reverse
entity Luigi De Laurentiis
relation executive producer
type work of art
[{'concept': 'work of art'}, 'executive producer', 'film producer']
SELECT DISTINCT ?s WHERE { ?s property:executive_producer resource:Luigi_De_Laurentiis . ?s rdf:type ontology:work_of_art }
[]
work of art
Q940081
SYSTEM
Unbelievable Adventures of Italians in Russia
Q940081
(c(Q838948),P1431,Q3282637)
action filter_type
action find_reverse
entity Q1308545
relation P1431
type Q838948
That person produced The [ANSWER]
[{'concept': 'Q838948'}, 'P1431', 'Q3282637']
SELECT DISTINCT ?s WHERE { ?s property:P1431 resource:Q1308545 . ?s rdf:type ontology:Q838948 }
Unbelievable Adventures of Italians in Russia
That person produced The Unbelievable Adventures of Italians in Russia
Unbelievable Adventures of Italians in Russia
action filter_type
action find_reverse
entity Luigi De Laurentiis
relation executive producer
type work of art
[{'concept': 'work of art'}, 'executive producer', 'film producer']
SELECT DISTINCT ?s WHERE { ?s property:executive_producer resource:Luigi_De_Laurentiis . ?s rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q940081 Q38
P495
Q15617994
USER
Is Italy the origin of that work of art ?
(Q940081,P495,Q38)
action is_in
entity Q38
action find
entity Q940081
relation P495
['Q940081', 'P495', 'Q38']
ASK WHERE { resource:Q940081 property:P495 resource:Q38 }
Unbelievable Adventures of Italians in Russia Italy
action is_in
entity Italy
action find
entity Unbelievable Adventures of Italians in Russia
relation country of origin
['Unbelievable Adventures of Italians in Russia', 'country of origin', 'Italy']
ASK WHERE { resource:Unbelievable_Adventures_of_Italians_in_Russia property:country_of_origin resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q940081,P495,Q38)
action is_in
entity Q38
action find
entity Q940081
relation P495
[ANSWER]
['Q940081', 'P495', 'Q38']
ASK WHERE { resource:Q940081 property:P495 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Unbelievable Adventures of Italians in Russia
relation country of origin
['Unbelievable Adventures of Italians in Russia', 'country of origin', 'Italy']
ASK WHERE { resource:Unbelievable_Adventures_of_Italians_in_Russia property:country_of_origin resource:Italy }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q220 Q16942322 Q405098
P6
Q502895
USER
Does Rome have Umberto Valverde and Ignazio Marino as its head of government ?
(Q220,P6,Q16942322) (Q220,P6,Q405098)
action is_in
entity Q220
action intersection
action find_reverse
entity Q16942322
relation P6
action find_reverse
entity Q405098
relation P6
['Q220', 'P6', 'Q16942322'] ['Q220', 'P6', 'Q405098']
ASK WHERE { resource:Q220 property:P6 resource:Q16942322 . resource:Q220 property:P6 resource:Q405098 }
Rome Umberto Valverde Ignazio Marino
action is_in
entity Rome
action intersection
action find_reverse
entity Umberto Valverde
relation head of government
action find_reverse
entity Ignazio Marino
relation head of government
['Rome', 'head of government', 'Umberto Valverde'] ['Rome', 'head of government', 'Ignazio Marino']
ASK WHERE { resource:Rome property:head_of_government resource:Umberto_Valverde . resource:Rome property:head_of_government resource:Ignazio_Marino }
[]
common name
SYSTEM
NO and YES respectively
(Q220,P6,Q16942322) (Q220,P6,Q405098)
action is_in
entity Q220
action intersection
action find_reverse
entity Q16942322
relation P6
action find_reverse
entity Q405098
relation P6
[ANSWER]
['Q220', 'P6', 'Q16942322'] ['Q220', 'P6', 'Q405098']
ASK WHERE { resource:Q220 property:P6 resource:Q16942322 . resource:Q220 property:P6 resource:Q405098 }
NO and YES respectively
action is_in
entity Rome
action intersection
action find_reverse
entity Umberto Valverde
relation head of government
action find_reverse
entity Ignazio Marino
relation head of government
['Rome', 'head of government', 'Umberto Valverde'] ['Rome', 'head of government', 'Ignazio Marino']
ASK WHERE { resource:Rome property:head_of_government resource:Umberto_Valverde . resource:Rome property:head_of_government resource:Ignazio_Marino }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q220
P190
Q15617994 Q56061
USER
How many administrative territories or administrative territories are twin town of Rome ?
(c(Q15617994),P190,Q220) (c(Q56061),P190,Q220)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P190
type Q15617994
action filter_type
action find_reverse
entity Q220
relation P190
type Q56061
[{'concept': 'Q15617994'}, 'P190', 'Q220'] [{'concept': 'Q56061'}, 'P190', 'Q220']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15617994 ) ( ontology:Q56061 ) } }
Rome
action count
action union
action filter_type
action find_reverse
entity Rome
relation sister city
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Rome
relation sister city
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Rome'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Rome']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:administrative_territorial_entity ) } }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
7
Q484799 Q8717 Q90 Q34647 Q13437 Q1490 Q132830
(c(Q15617994),P190,Q220) (c(Q56061),P190,Q220)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P190
type Q15617994
action filter_type
action find_reverse
entity Q220
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q15617994'}, 'P190', 'Q220'] [{'concept': 'Q56061'}, 'P190', 'Q220']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15617994 ) ( ontology:Q56061 ) } }
Marbella Seville Paris Johannesburg Benevento Tokyo Douala
7
action count
action union
action filter_type
action find_reverse
entity Rome
relation sister city
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Rome
relation sister city
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Rome'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Rome']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:administrative_territorial_entity ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5717025 Q72712
P19 P190
Q56061
USER
Which administrative territories are sister towns of Torre Annunziata or were Henry A. Schade born ?
OR((Q72712,P190,c(Q56061)), (Q5717025,P19,c(Q56061)))
action filter_type
action union
action find
entity Q72712
relation P190
action find
entity Q5717025
relation P19
type Q56061
{'OR': [['Q72712', 'P190', {'concept': 'Q56061'}], ['Q5717025', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q72712 property:P190 ?h } UNION { resource:Q5717025 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Henry A. Schade Torre Annunziata
action filter_type
action union
action find
entity Torre Annunziata
relation sister city
action find
entity Henry A. Schade
relation place of birth
type administrative territorial entity
{'OR': [['Torre Annunziata', 'sister city', {'concept': 'administrative territorial entity'}], ['Henry A. Schade', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Torre_Annunziata property:sister_city ?h } UNION { resource:Henry_A._Schade property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q494521 Q8818 Q28848
SYSTEM
Emmendingen, Valencia, Saint Paul
Q494521 Q8818 Q28848
OR((Q72712,P190,c(Q56061)), (Q5717025,P19,c(Q56061)))
action filter_type
action union
action find
entity Q72712
relation P190
action find
entity Q5717025
relation P19
type Q56061
[ANSWERS] are sister towns of Torre Annunziata or were Henry A. Schade born
{'OR': [['Q72712', 'P190', {'concept': 'Q56061'}], ['Q5717025', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q72712 property:P190 ?h } UNION { resource:Q5717025 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Emmendingen Valencia Saint Paul
Emmendingen, Valencia and Saint Paul are sister towns of Torre Annunziata or were Henry A. Schade born
Emmendingen Valencia Saint Paul
action filter_type
action union
action find
entity Torre Annunziata
relation sister city
action find
entity Henry A. Schade
relation place of birth
type administrative territorial entity
{'OR': [['Torre Annunziata', 'sister city', {'concept': 'administrative territorial entity'}], ['Henry A. Schade', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Torre_Annunziata property:sister_city ?h } UNION { resource:Henry_A._Schade property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q40348 Q8818
P19 P106
Q502895
USER
Which people were born at Valencia and have a job as lawyer ?
AND((c(Q502895),P19,Q8818), (c(Q502895),P106,Q40348))
action filter_type
action intersection
action find_reverse
entity Q8818
relation P19
action find_reverse
entity Q40348
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q8818'], [{'concept': 'Q502895'}, 'P106', 'Q40348']]}
SELECT DISTINCT ?f WHERE { ?f property:P19 resource:Q8818 . ?f property:P106 resource:Q40348 . ?f rdf:type ontology:Q502895 }
lawyer Valencia
action filter_type
action intersection
action find_reverse
entity Valencia
relation place of birth
action find_reverse
entity lawyer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Valencia'], [{'concept': 'common name'}, 'occupation', 'lawyer']]}
SELECT DISTINCT ?f WHERE { ?f property:place_of_birth resource:Valencia . ?f property:occupation resource:lawyer . ?f rdf:type ontology:common_name }
[]
common name
Q3131802 Q11919353 Q20105800 Q11918094 Q6300234 Q20908948 Q3266736 Q2835691 Q3187654 Q12156127
SYSTEM
Some of them are José Luis Albiñana Olmos, Enric Solà i Palerm, Fermín Artagoitia Calabuig, Eduardo Berenguer Vilanova, Juan Lloret Llorens, Carmen Begoña Gómez-Marco Pérez, Luis Lucia Mingarro, Andrés Rey de Artieda, Juan García Sentandreu, Belén Hoyo
Q20100989 Q20005397 Q11916135 Q9027739 Q20004440 Q11954630 Q3258770 Q728514 Q3148197 Q11918094 Q11705057 Q20006724 Q20001599 Q11929260 Q21001132 Q1101641 Q16181537 Q22713679 Q17362841 Q20105800 Q6781915 Q2835691 Q2838695 Q610622 Q2013966 Q9012262 Q9024673 Q8961119 Q9027943 Q20004871 Q3773729 Q2882598 Q20908952 Q20908951 Q11006768 Q219646 Q20908949 Q5576008 Q20004454 Q11934250 Q20100351 Q13451003 Q3470326 Q3131802 Q20005459 Q11934256 Q11919353 Q8964684 Q11918041 Q6752595 Q17033409 Q19595186 Q20908946 Q20908948 Q6300234 Q3753650 Q21001214 Q955989 Q5942847 Q3187654 Q11704317 Q8346405 Q20004381 Q12156127 Q9065723 Q5616203 Q9090101 Q8338405 Q21001198 Q1086829 Q11921211 Q3266736 Q14617019 Q21006597 Q21001158 Q11936560
AND((c(Q502895),P19,Q8818), (c(Q502895),P106,Q40348))
action filter_type
action intersection
action find_reverse
entity Q8818
relation P19
action find_reverse
entity Q40348
relation P106
type Q502895
[ANSWERS] were born at Valencia and have a job as lawyer
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q8818'], [{'concept': 'Q502895'}, 'P106', 'Q40348']]}
SELECT DISTINCT ?f WHERE { ?f property:P19 resource:Q8818 . ?f property:P106 resource:Q40348 . ?f rdf:type ontology:Q502895 }
Enrique López Salva Manuel Campillos Martínez Cristòfol Pascual i Genís Manuel Danvila y Collado José Rafael García-Fuster González-Alegre Vicente Antonio Sotillo Martí Dolores Johnson Sastre Ricardo Samper Ignacio Carrau Eduardo Berenguer Vilanova Vicent Dualde i Furió Vicente Garrigues Garrigues Francisco Trénor Palavicino Juan Bautista Reig García Juan Carlos Caballero Montañés Isaura Navarro Facund Burriel i Garcia de Polavieja Antonio Giménez Pericás José Ruiz de Lihory y Pardines Fermín Artagoitia Calabuig María Angels Ramón-Llin Andrés Rey de Artieda Francisco Maestre Laborde-Boix Narcís Vinyoles Eduardo López-Chávarri Joaquín López Puigcerver Luciano López Ferrer Felipe Guardiola Sellés Manuel Mata Gómez Juan Marco Molines Alberto Aguilera Joaquín Dualde José Manuel Uncio Lacasa Desamparados Sancho Vicente Enrique Cerezo Senís Vicente Blasco Ibañez Manuel del Hierro García José María Salas José Ros y Escoto Luis García Guijarro Vicente Blasco-Ibáñez Tortosa Manuel de Sárraga Salvador Ferrandis i Luna José Luis Albiñana Olmos Manuel Reig Fourquet Luis Ibáñez de Lara y Escoto Enric Solà i Palerm Gonzalo Julián Martín Eduard Atard i Llobell Manuel Gallent Nicola José María Mas Millet Ascensión Chirivella Marín Felipe Guillermo del Baño Fernández Carmen Begoña Gómez-Marco Pérez Juan Lloret Llorens Fernando Vizcaíno Casas María José Ferrer San Segundo Josep Cristòfol Sorní i Grau José María Desantes Guanter Juan García Sentandreu Teodor Llorente Monleón Ciril Amorós i Pastor José Luis Juan Sanz Belén Hoyo Rafael Atard Llobell Guillermo Martínez Casañ Trinitario Ruiz Valarino Carlos Testor Pascual Encarna Cervera Mañas Vicente Boluda Eugenio Burriel de Orueta Luis Lucia Mingarro José Cano Coloma José Vicente Marí Bosó Ana María Castellano Vilar Mercè Teodoro i Peris
José Luis Albiñana Olmos, Enric Solà i Palerm, Fermín Artagoitia Calabuig, Eduardo Berenguer Vilanova, Juan Lloret Llorens, Carmen Begoña Gómez-Marco Pérez, Luis Lucia Mingarro, Andrés Rey de Artieda, Juan García Sentandreu and Belén Hoyo were born at Valencia and have a job as lawyer
José Luis Albiñana Olmos Enric Solà i Palerm Fermín Artagoitia Calabuig Eduardo Berenguer Vilanova Juan Lloret Llorens Carmen Begoña Gómez-Marco Pérez Luis Lucia Mingarro Andrés Rey de Artieda Juan García Sentandreu Belén Hoyo
action filter_type
action intersection
action find_reverse
entity Valencia
relation place of birth
action find_reverse
entity lawyer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Valencia'], [{'concept': 'common name'}, 'occupation', 'lawyer']]}
SELECT DISTINCT ?f WHERE { ?f property:place_of_birth resource:Valencia . ?f property:occupation resource:lawyer . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q40348
P106
Q5 Q11028
USER
How many humen and information have a job as lawyer ?
(c(Q5),P106,Q40348) (c(Q11028),P106,Q40348)
action count
action union
action filter_type
action find_reverse
entity Q40348
relation P106
type Q5
action filter_type
action find_reverse
entity Q40348
relation P106
type Q11028
[{'concept': 'Q5'}, 'P106', 'Q40348'] [{'concept': 'Q11028'}, 'P106', 'Q40348']
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { VALUES ( ?r ) { ( ontology:Q5 ) ( ontology:Q11028 ) } . ?t rdf:type ?r }
lawyer
action count
action union
action filter_type
action find_reverse
entity lawyer
relation occupation
type human
action filter_type
action find_reverse
entity lawyer
relation occupation
type information
[{'concept': 'human'}, 'occupation', 'lawyer'] [{'concept': 'information'}, 'occupation', 'lawyer']
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { VALUES ( ?r ) { ( ontology:human ) ( ontology:information ) } . ?t rdf:type ?r }
[]
human information
SYSTEM
1 humen and 1 information
Q13786674 Q7742549
(c(Q5),P106,Q40348) (c(Q11028),P106,Q40348)
action count
action union
action filter_type
action find_reverse
entity Q40348
relation P106
type Q5
action filter_type
action find_reverse
entity Q40348
relation P106
type Q11028
[ANSWER]
[{'concept': 'Q5'}, 'P106', 'Q40348'] [{'concept': 'Q11028'}, 'P106', 'Q40348']
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { VALUES ( ?r ) { ( ontology:Q5 ) ( ontology:Q11028 ) } . ?t rdf:type ?r }
Inés Arrimadas The Irish Legal 100
1 humen and 1 information
action count
action union
action filter_type
action find_reverse
entity lawyer
relation occupation
type human
action filter_type
action find_reverse
entity lawyer
relation occupation
type information
[{'concept': 'human'}, 'occupation', 'lawyer'] [{'concept': 'information'}, 'occupation', 'lawyer']
SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) WHERE { VALUES ( ?r ) { ( ontology:human ) ( ontology:information ) } . ?t rdf:type ?r }
[]