Simple Question (Direct)
Simple Question
Q7282224
P641
Q349
USER
Which sport was Rafael Moreira Araújo a part of ?
(Q7282224,P641,c(Q349))
action filter_type
action find
entity Q7282224
relation P641
type Q349
['Q7282224', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q7282224 property:P641 ?f . ?f rdf:type ontology:Q349 }
Rafael Moreira Araújo
action filter_type
action find
entity Rafael Moreira Araújo
relation sport
type sport
['Rafael Moreira Araújo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Rafael_Moreira_Araújo property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7282224,P641,c(Q349))
action filter_type
action find
entity Q7282224
relation P641
type Q349
The [ANSWER] was Rafael Moreira Araújo a part of
['Q7282224', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q7282224 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
The association football was Rafael Moreira Araújo a part of
association football
action filter_type
action find
entity Rafael Moreira Araújo
relation sport
type sport
['Rafael Moreira Araújo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Rafael_Moreira_Araújo property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7282224
P21
Q290
USER
Which sex does that person possess ?
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q7282224
relation P21
type Q290
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q7282224 property:P21 ?f . ?f rdf:type ontology:Q290 }
Rafael Moreira Araújo
action filter_type
action find
entity Rafael Moreira Araújo
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Rafael_Moreira_Araújo property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q7282224
relation P21
type Q290
That person possesses a [ANSWER]
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q7282224 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Rafael Moreira Araújo
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Rafael_Moreira_Araújo property:gender ?f . ?f rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
How many sexes do around the same number of people belong to as that sex ?
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:P21 ?s . ?w rdf:type ontology:Q502895 . ?s rdf:type ontology:Q290 } GROUP BY ?s } . FILTER ( ?z = ?y ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Q6581097 property:P21 ?q . ?q rdf:type ontology:Q290 } } }
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:gender ?s . ?w rdf:type ontology:common_name . ?s rdf:type ontology:sex } GROUP BY ?s } . FILTER ( ?z = ?y ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:male property:gender ?q . ?q rdf:type ontology:sex } } }
[]
sex common name
SYSTEM
1
Q6581097
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:P21 ?s . ?w rdf:type ontology:Q502895 . ?s rdf:type ontology:Q290 } GROUP BY ?s } . FILTER ( ?z = ?y ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Q6581097 property:P21 ?q . ?q rdf:type ontology:Q290 } } }
male
1
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:gender ?s . ?w rdf:type ontology:common_name . ?s rdf:type ontology:sex } GROUP BY ?s } . FILTER ( ?z = ?y ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:male property:gender ?q . ?q rdf:type ontology:sex } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7282224
P19
Q56061
USER
Which administrative territory was Rafael Moreira Araújo born in ?
(Q7282224,P19,c(Q56061))
action filter_type
action find
entity Q7282224
relation P19
type Q56061
['Q7282224', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q7282224 property:P19 ?o }
Rafael Moreira Araújo
action filter_type
action find
entity Rafael Moreira Araújo
relation place of birth
type administrative territorial entity
['Rafael Moreira Araújo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Rafael_Moreira_Araújo property:place_of_birth ?o }
[]
administrative territorial entity
Q174
SYSTEM
São Paulo
Q174
(Q7282224,P19,c(Q56061))
action filter_type
action find
entity Q7282224
relation P19
type Q56061
Rafael Moreira Araújo was born in [ANSWER]
['Q7282224', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q7282224 property:P19 ?o }
São Paulo
Rafael Moreira Araújo was born in São Paulo
São Paulo
action filter_type
action find
entity Rafael Moreira Araújo
relation place of birth
type administrative territorial entity
['Rafael Moreira Araújo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Rafael_Moreira_Araújo property:place_of_birth ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7282224
P106
Q12737077
USER
What does that person do for a living ?
(Q174,P106,c(Q12737077))
action filter_type
action find
entity Q7282224
relation P106
type Q12737077
['Q174', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q7282224 property:P106 ?e }
Rafael Moreira Araújo
action filter_type
action find
entity Rafael Moreira Araújo
relation occupation
type occupation
['São Paulo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Rafael_Moreira_Araújo property:occupation ?e }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q174,P106,c(Q12737077))
action filter_type
action find
entity Q7282224
relation P106
type Q12737077
Player [ANSWER] that person does for a living
['Q174', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q7282224 property:P106 ?e }
association football player
Player association football player that person does for a living
association football player
action filter_type
action find
entity Rafael Moreira Araújo
relation occupation
type occupation
['São Paulo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Rafael_Moreira_Araújo property:occupation ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7282224
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Rafael Moreira Araújo ?
(Q7282224,P27,c(Q15617994))
action filter_type
action find
entity Q7282224
relation P27
type Q15617994
['Q7282224', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q7282224 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Rafael Moreira Araújo
action filter_type
action find
entity Rafael Moreira Araújo
relation country of citizenship
type designation for an administrative territorial entity
['Rafael Moreira Araújo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Rafael_Moreira_Araújo property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45
SYSTEM
Portugal
Q45
(Q7282224,P27,c(Q15617994))
action filter_type
action find
entity Q7282224
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Rafael Moreira Araújo
['Q7282224', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q7282224 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Portugal
Portugal is the country of citizenship of Rafael Moreira Araújo
Portugal
action filter_type
action find
entity Rafael Moreira Araújo
relation country of citizenship
type designation for an administrative territorial entity
['Rafael Moreira Araújo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Rafael_Moreira_Araújo property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q45
P551
Q502895
USER
Which people have residence at that administrative territory ?
(c(Q502895),P551,Q45)
action filter_type
action find_reverse
entity Q45
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q45']
SELECT DISTINCT ?g WHERE { ?g property:P551 resource:Q45 . ?g rdf:type ontology:Q502895 }
Portugal
action filter_type
action find_reverse
entity Portugal
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Portugal']
SELECT DISTINCT ?g WHERE { ?g property:residence resource:Portugal . ?g rdf:type ontology:common_name }
[]
common name
Q18592223 Q2742060
SYSTEM
Michael Biberstein, María Pacheco
Q18592223 Q2742060
(c(Q502895),P551,Q45)
action filter_type
action find_reverse
entity Q45
relation P551
type Q502895
[ANSWERS] have residence at that administrative territory
[{'concept': 'Q502895'}, 'P551', 'Q45']
SELECT DISTINCT ?g WHERE { ?g property:P551 resource:Q45 . ?g rdf:type ontology:Q502895 }
Michael Biberstein María Pacheco
Michael Biberstein and María Pacheco have residence at that administrative territory
Michael Biberstein María Pacheco
action filter_type
action find_reverse
entity Portugal
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Portugal']
SELECT DISTINCT ?g WHERE { ?g property:residence resource:Portugal . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18592223 Q2742060
P26
Q502895
USER
Who are the spouse of Michael Biberstein and María Pacheco ?
(c(Q502895),P26,Q18592223) (c(Q502895),P26,Q2742060)
action union
action filter_type
action find
entity Q18592223
relation P26
type Q502895
action filter_type
action find
entity Q2742060
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q18592223'] [{'concept': 'Q502895'}, 'P26', 'Q2742060']
SELECT DISTINCT ?e WHERE { { resource:Q18592223 property:P26 ?e . ?e rdf:type ontology:Q502895 } UNION { resource:Q2742060 property:P26 ?e . ?e rdf:type ontology:Q502895 } }
Michael Biberstein María Pacheco
action union
action filter_type
action find
entity Michael Biberstein
relation spouse
type common name
action filter_type
action find
entity María Pacheco
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Michael Biberstein'] [{'concept': 'common name'}, 'spouse', 'María Pacheco']
SELECT DISTINCT ?e WHERE { { resource:Michael_Biberstein property:spouse ?e . ?e rdf:type ontology:common_name } UNION { resource:María_Pacheco property:spouse ?e . ?e rdf:type ontology:common_name } }
[]
common name
Q15439892 Q1339628
SYSTEM
Ana Nobre Gusmão, Juan López de Padilla
Q15439892 Q1339628
(c(Q502895),P26,Q18592223) (c(Q502895),P26,Q2742060)
action union
action filter_type
action find
entity Q18592223
relation P26
type Q502895
action filter_type
action find
entity Q2742060
relation P26
type Q502895
The spouse of Michael Biberstein and María Pacheco are born [ANSWERS]
[{'concept': 'Q502895'}, 'P26', 'Q18592223'] [{'concept': 'Q502895'}, 'P26', 'Q2742060']
SELECT DISTINCT ?e WHERE { { resource:Q18592223 property:P26 ?e . ?e rdf:type ontology:Q502895 } UNION { resource:Q2742060 property:P26 ?e . ?e rdf:type ontology:Q502895 } }
Ana Nobre Gusmão Juan López de Padilla
The spouse of Michael Biberstein and María Pacheco are born Ana Nobre Gusmão and Juan López de Padilla
Ana Nobre Gusmão Juan López de Padilla
action union
action filter_type
action find
entity Michael Biberstein
relation spouse
type common name
action filter_type
action find
entity María Pacheco
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Michael Biberstein'] [{'concept': 'common name'}, 'spouse', 'María Pacheco']
SELECT DISTINCT ?e WHERE { { resource:Michael_Biberstein property:spouse ?e . ?e rdf:type ontology:common_name } UNION { resource:María_Pacheco property:spouse ?e . ?e rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q15439892 Q1339628
P21
Q290
USER
Which sexes do those people belong to ?
(Q15439892,P21,c(Q290)) (Q1339628,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q15439892', 'P21', {'concept': 'Q290'}] ['Q1339628', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . ?i property:P21 ?h . VALUES ( ?i ) { ( resource:Q15439892 ) ( resource:Q1339628 ) } }
Ana Nobre Gusmão Juan López de Padilla
action filter_type
action find
entity prev_answer
relation gender
type sex
['Ana Nobre Gusmão', 'gender', {'concept': 'sex'}] ['Juan López de Padilla', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . ?i property:gender ?h . VALUES ( ?i ) { ( resource:Ana_Nobre_Gusmão ) ( resource:Juan_López_de_Padilla ) } }
[]
sex
Q6581072 Q6581097
SYSTEM
female, male
Q6581072 Q6581097
(Q15439892,P21,c(Q290)) (Q1339628,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people belong to [ANSWERS]
['Q15439892', 'P21', {'concept': 'Q290'}] ['Q1339628', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q290 . ?i property:P21 ?h . VALUES ( ?i ) { ( resource:Q15439892 ) ( resource:Q1339628 ) } }
female male
Those people belong to female and male
female male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Ana Nobre Gusmão', 'gender', {'concept': 'sex'}] ['Juan López de Padilla', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sex . ?i property:gender ?h . VALUES ( ?i ) { ( resource:Ana_Nobre_Gusmão ) ( resource:Juan_López_de_Padilla ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q6581072 Q6581097
P136
Q502895
USER
Which people as female and male as their class ?
(c(Q502895),P136,Q6581072) (c(Q502895),P136,Q6581097)
action union
action filter_type
action find_reverse
entity Q6581072
relation P136
type Q502895
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581072'] [{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?n WHERE { { ?n property:P136 resource:Q6581072 . ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q502895 . ?n property:P136 resource:Q6581097 } }
female male
action union
action filter_type
action find_reverse
entity female
relation genre
type common name
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'female'] [{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?n WHERE { { ?n property:genre resource:female . ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:common_name . ?n property:genre resource:male } }
[]
common name
Q313288 Q18221191 Q23688633
SYSTEM
Augustus Pugin, Alessandro Gregorio Capponi, Eva Jospin
Q23688633 Q19831537 Q19796723 Q313288 Q23766532 Q18221191
(c(Q502895),P136,Q6581072) (c(Q502895),P136,Q6581097)
action union
action filter_type
action find_reverse
entity Q6581072
relation P136
type Q502895
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P136', 'Q6581072'] [{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?n WHERE { { ?n property:P136 resource:Q6581072 . ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q502895 . ?n property:P136 resource:Q6581097 } }
Eva Jospin Luisa María Martí García Francesc Xavier Avilés i Puigvert Augustus Pugin Pierre Laviron Alessandro Gregorio Capponi
PROBLEM PLURALIZE
Augustus Pugin Alessandro Gregorio Capponi Eva Jospin
action union
action filter_type
action find_reverse
entity female
relation genre
type common name
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'female'] [{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?n WHERE { { ?n property:genre resource:female . ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:common_name . ?n property:genre resource:male } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q313288 Q18221191 Q23688633
P106
Q12737077
USER
What are the professions of those people ?
(Q313288,P106,c(Q12737077)) (Q18221191,P106,c(Q12737077)) (Q23688633,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
['Q313288', 'P106', {'concept': 'Q12737077'}] ['Q18221191', 'P106', {'concept': 'Q12737077'}] ['Q23688633', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . ?w property:P106 ?v . VALUES ( ?w ) { ( resource:Q23688633 ) ( resource:Q19831537 ) ( resource:Q19796723 ) } }
Augustus Pugin Alessandro Gregorio Capponi Eva Jospin
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Augustus Pugin', 'occupation', {'concept': 'occupation'}] ['Alessandro Gregorio Capponi', 'occupation', {'concept': 'occupation'}] ['Eva Jospin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . ?w property:occupation ?v . VALUES ( ?w ) { ( resource:Eva_Jospin ) ( resource:Luisa_María_Martí_García ) ( resource:Francesc_Xavier_Avilés_i_Puigvert ) } }
[]
occupation
Q42973 Q3621491 Q3391743
SYSTEM
architect, archaeologist, visual artist
Q42973 Q17145081 Q3621491 Q3391743
(Q313288,P106,c(Q12737077)) (Q18221191,P106,c(Q12737077)) (Q23688633,P106,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P106
type Q12737077
The professions of those people are [ANSWERS]
['Q313288', 'P106', {'concept': 'Q12737077'}] ['Q18221191', 'P106', {'concept': 'Q12737077'}] ['Q23688633', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . ?w property:P106 ?v . VALUES ( ?w ) { ( resource:Q23688633 ) ( resource:Q19831537 ) ( resource:Q19796723 ) } }
architect museologist archaeologist visual artist
The professions of those people are architect, archaeologist and visual artist
architect archaeologist visual artist
action filter_type
action find
entity prev_answer
relation occupation
type occupation
['Augustus Pugin', 'occupation', {'concept': 'occupation'}] ['Alessandro Gregorio Capponi', 'occupation', {'concept': 'occupation'}] ['Eva Jospin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . ?w property:occupation ?v . VALUES ( ?w ) { ( resource:Eva_Jospin ) ( resource:Luisa_María_Martí_García ) ( resource:Francesc_Xavier_Avilés_i_Puigvert ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q45
P6
Q502895
USER
Who are the heads of the government of Portugal ?
(Q45,P6,c(Q502895))
action filter_type
action find
entity Q45
relation P6
type Q502895
['Q45', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q45 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Portugal
action filter_type
action find
entity Portugal
relation head of government
type common name
['Portugal', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Portugal property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
common name
Q57615 Q610788
SYSTEM
Pedro Passos Coelho, António Costa
Q57615 Q610788
(Q45,P6,c(Q502895))
action filter_type
action find
entity Q45
relation P6
type Q502895
The heads of the government of Portugal are between [ANSWERS]
['Q45', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q45 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Pedro Passos Coelho António Costa
The heads of the government of Portugal are between Pedro Passos Coelho and António Costa
Pedro Passos Coelho António Costa
action filter_type
action find
entity Portugal
relation head of government
type common name
['Portugal', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Portugal property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q45
P530
Q1048835 Q15617994
USER
How many political territories or administrative territories have diplomatic relations with Portugal ?
(Q45,P530,c(Q1048835)) (Q45,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q45
relation P530
type Q1048835
action filter_type
action find
entity Q45
relation P530
type Q15617994
['Q45', 'P530', {'concept': 'Q1048835'}] ['Q45', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { resource:Q45 property:P530 ?m . ?m rdf:type ontology:Q1048835 } UNION { resource:Q45 property:P530 ?m . ?m rdf:type ontology:Q15617994 } }
Portugal
action count
action union
action filter_type
action find
entity Portugal
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Portugal
relation diplomatic relation
type designation for an administrative territorial entity
['Portugal', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Portugal', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { resource:Portugal property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } UNION { resource:Portugal property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
5
Q155 Q408 Q38 Q183 Q1011
(Q45,P530,c(Q1048835)) (Q45,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q45
relation P530
type Q1048835
action filter_type
action find
entity Q45
relation P530
type Q15617994
[ANSWER]
['Q45', 'P530', {'concept': 'Q1048835'}] ['Q45', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { resource:Q45 property:P530 ?m . ?m rdf:type ontology:Q1048835 } UNION { resource:Q45 property:P530 ?m . ?m rdf:type ontology:Q15617994 } }
Brazil Australia Italy Germany Cape Verde
5
action count
action union
action filter_type
action find
entity Portugal
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Portugal
relation diplomatic relation
type designation for an administrative territorial entity
['Portugal', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Portugal', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { { resource:Portugal property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } UNION { resource:Portugal property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do atmost 2163 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2163
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?j <= 2163 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2163
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?j <= 2163 ) }
[]
musical instrument common name
SYSTEM
63
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2163
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?j <= 2163 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
63
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2163
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?j <= 2163 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q25342377 Q23688633
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Eva Jospin and are Kaptour present in ?
AND((Q23688633,P27,c(Q15617994)), (Q25342377,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q23688633
relation P27
action find
entity Q25342377
relation P17
type Q15617994
{'AND': [['Q23688633', 'P27', {'concept': 'Q15617994'}], ['Q25342377', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q23688633 property:P27 ?b . resource:Q25342377 property:P17 ?b }
Kaptour Eva Jospin
action filter_type
action intersection
action find
entity Eva Jospin
relation country of citizenship
action find
entity Kaptour
relation country
type designation for an administrative territorial entity
{'AND': [['Eva Jospin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kaptour', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Eva_Jospin property:country_of_citizenship ?b . resource:Kaptour property:country ?b }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q23688633,P27,c(Q15617994)), (Q25342377,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q23688633
relation P27
action find
entity Q25342377
relation P17
type Q15617994
[ANSWER] is the native countriesof Eva Jospin and is Kaptour present in
{'AND': [['Q23688633', 'P27', {'concept': 'Q15617994'}], ['Q25342377', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q23688633 property:P27 ?b . resource:Q25342377 property:P17 ?b }
France
France is the native countriesof Eva Jospin and is Kaptour present in
France
action filter_type
action intersection
action find
entity Eva Jospin
relation country of citizenship
action find
entity Kaptour
relation country
type designation for an administrative territorial entity
{'AND': [['Eva Jospin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kaptour', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Eva_Jospin property:country_of_citizenship ?b . resource:Kaptour property:country ?b }
[]