Simple Question (Direct)
Simple Question
Q1043147
P106
Q12737077
USER
Which occupations have Carlos Francisco Martins Pinheiro as his/her 's career ?
(Q1043147,P106,c(Q12737077))
action filter_type
action find
entity Q1043147
relation P106
type Q12737077
['Q1043147', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1043147 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Carlos Francisco Martins Pinheiro
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation occupation
type occupation
['Carlos Francisco Martins Pinheiro', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q1234713 Q250867
SYSTEM
theologian, Catholic priest
Q1234713 Q250867
(Q1043147,P106,c(Q12737077))
action filter_type
action find
entity Q1043147
relation P106
type Q12737077
The [ANSWERS] have Carlos Francisco Martins Pinheiro as his/her 's career
['Q1043147', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1043147 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
theologian Catholic priest
The theologian and Catholic priest have Carlos Francisco Martins Pinheiro as his/her 's career
theologian Catholic priest
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation occupation
type occupation
['Carlos Francisco Martins Pinheiro', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1043147
P140
Q874405
USER
What is the religious affiliation of Carlos Francisco Martins Pinheiro ?
(Q1043147,P140,c(Q874405))
action filter_type
action find
entity Q1043147
relation P140
type Q874405
['Q1043147', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?t WHERE { resource:Q1043147 property:P140 ?t . ?t rdf:type ontology:Q874405 }
Carlos Francisco Martins Pinheiro
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation religion
type social group
['Carlos Francisco Martins Pinheiro', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?t WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:religion ?t . ?t rdf:type ontology:social_group }
[]
social group
Q1841
SYSTEM
Catholicism
Q1841
(Q1043147,P140,c(Q874405))
action filter_type
action find
entity Q1043147
relation P140
type Q874405
The religious affiliation of Carlos Francisco Martins Pinheiro is Roman [ANSWER]
['Q1043147', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?t WHERE { resource:Q1043147 property:P140 ?t . ?t rdf:type ontology:Q874405 }
Catholicism
The religious affiliation of Carlos Francisco Martins Pinheiro is Roman Catholicism
Catholicism
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation religion
type social group
['Carlos Francisco Martins Pinheiro', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?t WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:religion ?t . ?t rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1043147
P21
Q290
USER
What is the sex of Carlos Francisco Martins Pinheiro ?
(Q1043147,P21,c(Q290))
action filter_type
action find
entity Q1043147
relation P21
type Q290
['Q1043147', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q1043147 property:P21 ?d . ?d rdf:type ontology:Q290 }
Carlos Francisco Martins Pinheiro
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation gender
type sex
['Carlos Francisco Martins Pinheiro', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1043147,P21,c(Q290))
action filter_type
action find
entity Q1043147
relation P21
type Q290
The sex of Carlos Francisco Martins Pinheiro is a [ANSWER]
['Q1043147', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q1043147 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
The sex of Carlos Francisco Martins Pinheiro is a male
male
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation gender
type sex
['Carlos Francisco Martins Pinheiro', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2829646
Q290
USER
And what about Alain Cavenne?
(Q2829646,P21,c(Q290))
action filter_type
action find
entity Q2829646
relation P21
type Q290
['Q2829646', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q2829646 property:P21 ?b . ?b rdf:type ontology:Q290 }
Alain Cavenne
action filter_type
action find
entity Alain Cavenne
relation gender
type sex
['Alain Cavenne', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Alain_Cavenne property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2829646,P21,c(Q290))
action filter_type
action find
entity Q2829646
relation P21
type Q290
[ANSWER]
['Q2829646', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q2829646 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Alain Cavenne
relation gender
type sex
['Alain Cavenne', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Alain_Cavenne property:gender ?b . ?b rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q191067 Q838948
USER
How many occupations were discussed in atmost 61 articles or works of art ?
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 61
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { FILTER ( ?e <= 61 ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?e ) WHERE { { ?y property:P921 ?b . ?b rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q191067 } UNION { ?y property:P921 ?b . ?y rdf:type ontology:Q838948 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?b } }
action count
action atmost
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 work of art
value 61
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { FILTER ( ?e <= 61 ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?e ) WHERE { { ?y property:main_subject ?b . ?b rdf:type ontology:occupation . ?y rdf:type ontology:article } UNION { ?y property:main_subject ?b . ?y rdf:type ontology:work_of_art . ?b rdf:type ontology:occupation } } GROUP BY ?b } }
[]
occupation article work of art
SYSTEM
100
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q16746569 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 61
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { FILTER ( ?e <= 61 ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?e ) WHERE { { ?y property:P921 ?b . ?b rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q191067 } UNION { ?y property:P921 ?b . ?y rdf:type ontology:Q838948 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?b } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney 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 taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward 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 pastor cartoonist judge Member of the South Australian House of Assembly nanny high school student caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
100
action count
action atmost
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 work of art
value 61
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { FILTER ( ?e <= 61 ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?e ) WHERE { { ?y property:main_subject ?b . ?b rdf:type ontology:occupation . ?y rdf:type ontology:article } UNION { ?y property:main_subject ?b . ?y rdf:type ontology:work_of_art . ?b rdf:type ontology:occupation } } GROUP BY ?b } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q721974 Q1043147
P27
Q15617994
USER
Which administrative territories do Carlos Francisco Martins Pinheiro or Oscar Garré belong to ?
OR((Q1043147,P27,c(Q15617994)), (Q721974,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1043147
relation P27
action find
entity Q721974
relation P27
type Q15617994
{'OR': [['Q1043147', 'P27', {'concept': 'Q15617994'}], ['Q721974', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { { resource:Q1043147 property:P27 ?h } UNION { resource:Q721974 property:P27 ?h } } }
Oscar Garré Carlos Francisco Martins Pinheiro
action filter_type
action union
action find
entity Carlos Francisco Martins Pinheiro
relation country of citizenship
action find
entity Oscar Garré
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Carlos Francisco Martins Pinheiro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Oscar Garré', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Carlos_Francisco_Martins_Pinheiro property:country_of_citizenship ?h } UNION { resource:Oscar_Garré property:country_of_citizenship ?h } } }
[]
designation for an administrative territorial entity
Q45 Q414
SYSTEM
Portugal, Argentina
Q45 Q414
OR((Q1043147,P27,c(Q15617994)), (Q721974,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1043147
relation P27
action find
entity Q721974
relation P27
type Q15617994
[ANSWERS] Carlos Francisco Martins Pinheiro or Oscar Garré belong to
{'OR': [['Q1043147', 'P27', {'concept': 'Q15617994'}], ['Q721974', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { { resource:Q1043147 property:P27 ?h } UNION { resource:Q721974 property:P27 ?h } } }
Portugal Argentina
Portugal and Argentina Carlos Francisco Martins Pinheiro or Oscar Garré belong to
Portugal Argentina
action filter_type
action union
action find
entity Carlos Francisco Martins Pinheiro
relation country of citizenship
action find
entity Oscar Garré
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Carlos Francisco Martins Pinheiro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Oscar Garré', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Carlos_Francisco_Martins_Pinheiro property:country_of_citizenship ?h } UNION { resource:Oscar_Garré property:country_of_citizenship ?h } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q45 Q414
P17
Q4830453
USER
Which business enterprises are located in Portugal and Argentina ?
(c(Q4830453),P17,Q45) (c(Q4830453),P17,Q414)
action union
action filter_type
action find_reverse
entity Q45
relation P17
type Q4830453
action filter_type
action find_reverse
entity Q414
relation P17
type Q4830453
[{'concept': 'Q4830453'}, 'P17', 'Q45'] [{'concept': 'Q4830453'}, 'P17', 'Q414']
SELECT DISTINCT ?i WHERE { { ?i rdf:type ontology:Q4830453 . ?i property:P17 resource:Q45 } UNION { ?i rdf:type ontology:Q4830453 . ?i property:P17 resource:Q414 } }
Portugal Argentina
action union
action filter_type
action find_reverse
entity Portugal
relation country
type business enterprise
action filter_type
action find_reverse
entity Argentina
relation country
type business enterprise
[{'concept': 'business enterprise'}, 'country', 'Portugal'] [{'concept': 'business enterprise'}, 'country', 'Argentina']
SELECT DISTINCT ?i WHERE { { ?i rdf:type ontology:business_enterprise . ?i property:country resource:Portugal } UNION { ?i rdf:type ontology:business_enterprise . ?i property:country resource:Argentina } }
[]
business enterprise
Q10366076 Q278231 Q23043017
SYSTEM
Record FM, A.G. Engineering, Mercedes-Benz Argentina
Q2718119 Q2004060 Q571820 Q29685 Q571818 Q10366076 Q278231 Q19973386 Q5823601 Q23043017 Q5375623 Q16637464 Q4036133 Q5746508 Q3416744 Q517896 Q1032473 Q1143518 Q8261480 Q392235 Q5426733 Q6460383
(c(Q4830453),P17,Q45) (c(Q4830453),P17,Q414)
action union
action filter_type
action find_reverse
entity Q45
relation P17
type Q4830453
action filter_type
action find_reverse
entity Q414
relation P17
type Q4830453
[ANSWERS] are located in Portugal and Argentina
[{'concept': 'Q4830453'}, 'P17', 'Q45'] [{'concept': 'Q4830453'}, 'P17', 'Q414']
SELECT DISTINCT ?i WHERE { { ?i rdf:type ontology:Q4830453 . ?i property:P17 resource:Q45 } UNION { ?i rdf:type ontology:Q4830453 . ?i property:P17 resource:Q414 } }
RDP Antena 2 Televisão Independente RDP Antena 3 Metro de Mirandela Antena 1 Record FM A.G. Engineering Kiss FM El Trece Internacional Mercedes-Benz Argentina Encuentro TaTeTi Chincul Canal 9 Villa María Radio Mitre Radiodifusión Argentina al Exterior El Trece Telefe Canal 4 Misiones Tandanor FM La Boca LW 83 TV
Record FM, A.G. Engineering and Mercedes-Benz Argentina are located in Portugal and Argentina
Record FM A.G. Engineering Mercedes-Benz Argentina
action union
action filter_type
action find_reverse
entity Portugal
relation country
type business enterprise
action filter_type
action find_reverse
entity Argentina
relation country
type business enterprise
[{'concept': 'business enterprise'}, 'country', 'Portugal'] [{'concept': 'business enterprise'}, 'country', 'Argentina']
SELECT DISTINCT ?i WHERE { { ?i rdf:type ontology:business_enterprise . ?i property:country resource:Portugal } UNION { ?i rdf:type ontology:business_enterprise . ?i property:country resource:Argentina } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q45
P740
Q2088357
USER
Which musical ensembles originated at Portugal ?
(c(Q2088357),P740,Q45)
action filter_type
action find_reverse
entity Q45
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q45']
SELECT DISTINCT ?c WHERE { ?c property:P740 resource:Q45 . ?c rdf:type ontology:Q2088357 }
Portugal
action filter_type
action find_reverse
entity Portugal
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Portugal']
SELECT DISTINCT ?c WHERE { ?c property:location_of_formation resource:Portugal . ?c rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q1808467 Q5990625 Q7135552
SYSTEM
Head Control System, If Lucy Fell, Paranormal Attack
Q300491 Q1808467 Q5990625 Q7135552
(c(Q2088357),P740,Q45)
action filter_type
action find_reverse
entity Q45
relation P740
type Q2088357
Head Control System, If Lucy fell and Paranormal Attack originated at Portugal
[{'concept': 'Q2088357'}, 'P740', 'Q45']
SELECT DISTINCT ?c WHERE { ?c property:P740 resource:Q45 . ?c rdf:type ontology:Q2088357 }
A Naifa Head Control System If Lucy Fell Paranormal Attack
Head Control System, If Lucy fell and Paranormal Attack originated at Portugal
Head Control System If Lucy Fell Paranormal Attack
action filter_type
action find_reverse
entity Portugal
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Portugal']
SELECT DISTINCT ?c WHERE { ?c property:location_of_formation resource:Portugal . ?c rdf:type ontology:musical_ensemble }
[]